Skip to content

Commit

Permalink
spec_ruby_to_php: more fixes to make it really usable
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyCat committed Sep 1, 2016
1 parent 5c89a83 commit aa73fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec_ruby_to_php
Expand Up @@ -30,15 +30,15 @@ s.gsub!(/expect\((.*?)\)\.to eq (.*)$/) {

c = act.split(/\./)
c.map! { |x| "#{underscore_to_lower_camel(x)}" }
act = c.join('->')
act = c.join('->').gsub(/^r/, '$r')

"$this->assertEquals(#{exp}, #{act});"
}
s.gsub!(/^\s*end\n/, '')

puts <<__EOF__
<?php
namespace Kaitai\Struct\Tests;
namespace Kaitai\\Struct\\Tests;
class #{class_name}Test extends TestCase {
public function test#{class_name}() {
Expand Down

0 comments on commit aa73fce

Please sign in to comment.