Fix tests cross platform #182

Merged
merged 2 commits into from Oct 21, 2012
@@ -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';
View
@@ -13,7 +13,7 @@
"propel/propel1": "1.6.*"
},
"require-dev": {
- "sensio/framework-extra-bundle": "dev-master",
+ "sensio/framework-extra-bundle": ">=2.1",
"fzaninotto/faker": "dev-master"
},
"autoload": {