Sha256: 72a5b7650085d9cb536370cd96e1f9029c637f987ab55bdef2b4d7663471dd31

Contents?: true

Size: 513 Bytes

Versions: 2

Compression:

Stored size: 513 Bytes

Contents

require 'spec_helper'
require 'php_ruby/io/functions'

describe PhpRuby::Io::Functions do

  describe '#echo' do
    it { expect{subject.echo(1,2,[])}.to_not raise_error }
  end

  describe '#print_r' do
    it { expect{subject.print_r(1,2,[])}.to_not raise_error }
  end

  describe '#sprintf' do
    it { expect(subject.sprintf("%0.3f %s", 0.0009, 'sec')).to eq "0.001 sec" }
  end

  describe '#file' do
    it { expect(subject.file(fixture_file_path('simple.txt'))).to eq "i am \na simple file\n" }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
php_ruby-0.0.3 spec/io_functions_spec.rb
php_ruby-0.0.2 spec/io_functions_spec.rb