Permalink
Browse files

fix cross-platform tests

  • Loading branch information...
jaugustin committed Oct 21, 2012
1 parent ea7653d commit 821cc398a6455020f65fa88501153bb543951ac6
Showing with 4 additions and 2 deletions.
  1. +4 −2 Tests/Command/AbstractCommandTest.php
@@ -57,7 +57,8 @@ public function testTransformToLogicalName()
$schema
->expects($this->once())
->method('getRealPath')
- ->will($this->returnValue('/Users/foo/project/src/My/SuperBundle/Resources/config/my-schema.xml'));
+ ->will($this->returnValue('/Users/foo/project/src/My/SuperBundle'
+ . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'my-schema.xml'));
$expected = '@MySuperBundle/Resources/config/my-schema.xml';
@@ -83,7 +84,8 @@ public function testTransformToLogicalNameWithSubDir()
$schema
->expects($this->once())
->method('getRealPath')
- ->will($this->returnValue('/Users/foo/project/src/My/SuperBundle/Resources/config/propel/my-schema.xml'));
+ ->will($this->returnValue('/Users/foo/project/src/My/SuperBundle'
+ . DIRECTORY_SEPARATOR . 'Resources' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'propel/my-schema.xml'));
$expected = '@MySuperBundle/Resources/config/propel/my-schema.xml';

0 comments on commit 821cc39

Please sign in to comment.