symfony/symfony — Issue #3303: test suite failures on Windows
Author: Tobion
Created: 2012-02-09 01:43:06+00:00
State: open

Hey, running the test suite on Windows using PHP 5.3.5 gives me 30 failures. Some of them seem to be Windows specific things like the directory seperator, but some seem very strange. Maybe someone can find out why this happens and how to solve the issues. Here is my test result:

Time: 01:35, Memory: 192.75Mb

There were 30 failures:

1) Symfony\Tests\Component\ClassLoader\ClassMapGeneratorTest::testCreateMap with data set #0 ('E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/Namespaced', array('E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/Namespaced/Bar.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/Namespaced/Foo.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/Namespaced/Baz.php'))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'Namespaced\Bar' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/Namespaced/Bar.php'
- 'Namespaced\Foo' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/Namespaced/Foo.php'
- 'Namespaced\Baz' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/Namespaced/Baz.php'
+ 'Namespaced\Bar' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\Namespaced\Bar.php'
+ 'Namespaced\Foo' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\Namespaced\Foo.php'
+ 'Namespaced\Baz' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\Namespaced\Baz.php'
)

E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\ClassMapGeneratorTest.php:24
C:\xampp\php\phpunit:46

2) Symfony\Tests\Component\ClassLoader\ClassMapGeneratorTest::testCreateMap with data set #1 ('E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/beta/NamespaceCollision', array('E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/beta/NamespaceCollision/A/B/Bar.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/beta/NamespaceCollision/A/B/Foo.php'))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'NamespaceCollision\A\B\Bar' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/beta/NamespaceCollision/A/B/Bar.php'
- 'NamespaceCollision\A\B\Foo' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/beta/NamespaceCollision/A/B/Foo.php'
+ 'NamespaceCollision\A\B\Bar' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\beta\NamespaceCollision\A\B\Bar.php'
+ 'NamespaceCollision\A\B\Foo' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\beta\NamespaceCollision\A\B\Foo.php'
)

E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\ClassMapGeneratorTest.php:24
C:\xampp\php\phpunit:46

3) Symfony\Tests\Component\ClassLoader\ClassMapGeneratorTest::testCreateMap with data set #2 ('E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/Pearlike', array('E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/Pearlike/Foo.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/Pearlike/Bar.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/Pearlike/Baz.php'))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'Pearlike_Foo' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/Pearlike/Foo.php'
- 'Pearlike_Bar' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/Pearlike/Bar.php'
- 'Pearlike_Baz' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/Pearlike/Baz.php'
+ 'Pearlike_Foo' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\Pearlike\Foo.php'
+ 'Pearlike_Bar' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\Pearlike\Bar.php'
+ 'Pearlike_Baz' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\Pearlike\Baz.php'
)

E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\ClassMapGeneratorTest.php:24
C:\xampp\php\phpunit:46

4) Symfony\Tests\Component\ClassLoader\ClassMapGeneratorTest::testCreateMap with data set #3 ('E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/classmap', array('E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/classmap/sameNsMultipleClasses.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/classmap/sameNsMultipleClasses.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/classmap/multipleNs.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/classmap/multipleNs.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/classmap/multipleNs.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/classmap/multipleNs.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/classmap/SomeInterface.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/classmap/SomeParent.php', 'E:\\Projekte\\symfony\\tests\\Symfony\\Tests\\Component\\ClassLoader/Fixtures/classmap/SomeClass.php'))
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'Foo\Bar\A' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/classmap/sameNsMultipleClasses.php'
- 'Foo\Bar\B' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/classmap/sameNsMultipleClasses.php'
- 'Alpha\A' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/classmap/multipleNs.php'
- 'Alpha\B' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/classmap/multipleNs.php'
- 'Beta\A' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/classmap/multipleNs.php'
- 'Beta\B' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/classmap/multipleNs.php'
- 'ClassMap\SomeInterface' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/classmap/SomeInterface.php'
- 'ClassMap\SomeParent' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/classmap/SomeParent.php'
- 'ClassMap\SomeClass' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/classmap/SomeClass.php'
+ 'Foo\Bar\A' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\classmap\sameNsMultipleClasses.php'
+ 'Foo\Bar\B' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\classmap\sameNsMultipleClasses.php'
+ 'Alpha\A' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\classmap\multipleNs.php'
+ 'Alpha\B' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\classmap\multipleNs.php'
+ 'Beta\A' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\classmap\multipleNs.php'
+ 'Beta\B' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\classmap\multipleNs.php'
+ 'ClassMap\SomeInterface' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\classmap\SomeInterface.php'
+ 'ClassMap\SomeParent' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\classmap\SomeParent.php'
+ 'ClassMap\SomeClass' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\classmap\SomeClass.php'
)

E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\ClassMapGeneratorTest.php:24
C:\xampp\php\phpunit:46

5) Symfony\Tests\Component\ClassLoader\ClassMapGeneratorTest::testCreateMapFinderSupport
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'NamespaceCollision\A\B\Bar' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/beta/NamespaceCollision/A/B/Bar.php'
- 'NamespaceCollision\A\B\Foo' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader/Fixtures/beta/NamespaceCollision/A/B/Foo.php'
+ 'NamespaceCollision\A\B\Bar' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\beta\NamespaceCollision\A\B\Bar.php'
+ 'NamespaceCollision\A\B\Foo' => 'E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\Fixtures\beta\NamespaceCollision\A\B\Foo.php'
)

E:\Projekte\symfony\tests\Symfony\Tests\Component\ClassLoader\ClassMapGeneratorTest.php:71
C:\xampp\php\phpunit:46

6) Symfony\Tests\Component\Form\Extension\Core\DataTransformer\IntegerToLocalizedStringTransformerTest::testReverseTransformExpectsValidNumber
Failed asserting that exception of type "Symfony\Component\Form\Exception\TransformationFailedException" is thrown.

C:\xampp\php\phpunit:46

7) Symfony\Tests\Component\Form\Extension\Core\DataTransformer\IntegerToLocalizedStringTransformerTest::testReverseTransformDisallowsNaN2
Failed asserting that exception of type "Symfony\Component\Form\Exception\TransformationFailedException" is thrown.

C:\xampp\php\phpunit:46

8) Symfony\Tests\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformerTest::testTransformWithRoundingMode
->transform() rounding-mode works
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'1234,54'
+'1234,55'

E:\Projekte\symfony\tests\Symfony\Tests\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformerTest.php:66
C:\xampp\php\phpunit:46

9) Symfony\Tests\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformerTest::testReverseTransformExpectsValidNumber
Failed asserting that exception of type "Symfony\Component\Form\Exception\TransformationFailedException" is thrown.

C:\xampp\php\phpunit:46

10) Symfony\Tests\Component\Form\Extension\Core\DataTransformer\NumberToLocalizedStringTransformerTest::testReverseTransformDisallowsNaN2
Failed asserting that exception of type "Symfony\Component\Form\Exception\TransformationFailedException" is thrown.

C:\xampp\php\phpunit:46

11) Symfony\Tests\Component\HttpKernel\Debug\StopwatchEventTest::testTotalTime
Failed asserting that false is true.

E:\Projekte\symfony\tests\Symfony\Tests\Component\HttpKernel\Debug\StopwatchEventTest.php:82
C:\xampp\php\phpunit:46

12) Symfony\Tests\Component\HttpKernel\Debug\StopwatchEventTest::testEnsureStopped
Failed asserting that false is true.

E:\Projekte\symfony\tests\Symfony\Tests\Component\HttpKernel\Debug\StopwatchEventTest.php:104
C:\xampp\php\phpunit:46

13) Symfony\Tests\Component\HttpKernel\Debug\StopwatchTest::testLap
Failed asserting that false is true.

E:\Projekte\symfony\tests\Symfony\Tests\Component\HttpKernel\Debug\StopwatchTest.php:55
C:\xampp\php\phpunit:46

14) Symfony\Tests\Component\Locale\Stub\StubIntlDateFormatterTest::testFormatWithTimezoneIntl with data set #17 (0, 'Australia/Eucla', '1970-01-01 08:45:00')
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-1970-01-01 08:45:00
+1970-01-01 00:00:00

E:\Projekte\symfony\tests\Symfony\Tests\Component\Locale\Stub\StubIntlDateFormatterTest.php:310
C:\xampp\php\phpunit:46

15) Symfony\Tests\Component\Locale\Stub\StubIntlDateFormatterTest::testFormatWithTimezoneFormatOptionAndDifferentThanUtcIntl
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Fiji Time'
+'GMT+12:00'

E:\Projekte\symfony\tests\Symfony\Tests\Component\Locale\Stub\StubIntlDateFormatterTest.php:362
C:\xampp\php\phpunit:46

16) Symfony\Tests\Component\Locale\Stub\StubNumberFormatterTest::testFormatTypeInt32Intl with data set #6 (NumberFormatter, 2147483648, '(SFD2,147,483,648.00)', '->format() TYPE_INT32 formats inconsistently an integer if out of the 32 bit range.')
->format() TYPE_INT32 formats inconsistently an integer if out of the 32 bit range.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'(SFD2,147,483,648.00)'
+'-SFD2,147,483,648.00'

E:\Projekte\symfony\tests\Symfony\Tests\Component\Locale\Stub\StubNumberFormatterTest.php:271
C:\xampp\php\phpunit:46

17) Symfony\Tests\Component\Locale\Stub\StubNumberFormatterTest::testFormatTypeInt64Intl with data set #7 (NumberFormatter, -2147483649, '(SFD2,147,483,649.00)')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'(SFD2,147,483,649.00)'
+'-SFD2,147,483,649.00'

E:\Projekte\symfony\tests\Symfony\Tests\Component\Locale\Stub\StubNumberFormatterTest.php:310
C:\xampp\php\phpunit:46

18) Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest::testValidImage
Symfony\Component\Validator\ExecutionContext::addViolation('This file is not a valid image', Array (...), null) was not expected to be called.

E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\FileValidator.php:135
E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\ImageValidator.php:27
E:\Projekte\symfony\tests\Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest.php:53
C:\xampp\php\phpunit:46

19) Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest::testValidSize
Symfony\Component\Validator\ExecutionContext::addViolation('This file is not a valid image', Array (...), null) was not expected to be called.

E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\FileValidator.php:135
E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\ImageValidator.php:27
E:\Projekte\symfony\tests\Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest.php:68
C:\xampp\php\phpunit:46

20) Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest::testWidthTooSmall
Expectation failed for method name is equal to when invoked 1 time(s)
Parameter 0 for invocation Symfony\Component\Validator\ExecutionContext::addViolation('This file is not a valid image', Array (...), null) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'myMessage'
+'This file is not a valid image'

E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\FileValidator.php:135
E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\ImageValidator.php:27
E:\Projekte\symfony\tests\Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest.php:85
C:\xampp\php\phpunit:46

21) Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest::testWidthTooBig
Expectation failed for method name is equal to when invoked 1 time(s)
Parameter 0 for invocation Symfony\Component\Validator\ExecutionContext::addViolation('This file is not a valid image', Array (...), null) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'myMessage'
+'This file is not a valid image'

E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\FileValidator.php:135
E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\ImageValidator.php:27
E:\Projekte\symfony\tests\Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest.php:102
C:\xampp\php\phpunit:46

22) Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest::testHeightTooSmall
Expectation failed for method name is equal to when invoked 1 time(s)
Parameter 0 for invocation Symfony\Component\Validator\ExecutionContext::addViolation('This file is not a valid image', Array (...), null) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'myMessage'
+'This file is not a valid image'

E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\FileValidator.php:135
E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\ImageValidator.php:27
E:\Projekte\symfony\tests\Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest.php:119
C:\xampp\php\phpunit:46

23) Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest::testHeightTooBig
Expectation failed for method name is equal to when invoked 1 time(s)
Parameter 0 for invocation Symfony\Component\Validator\ExecutionContext::addViolation('This file is not a valid image', Array (...), null) does not match expected value.
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'myMessage'
+'This file is not a valid image'

E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\FileValidator.php:135
E:\Projekte\symfony\src\Symfony\Component\Validator\Constraints\ImageValidator.php:27
E:\Projekte\symfony\tests\Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest.php:136
C:\xampp\php\phpunit:46

24) Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest::testInvalidMinWidth
Failed asserting that exception of type "\Symfony\Component\Validator\Exception\ConstraintDefinitionException" is thrown.

C:\xampp\php\phpunit:46

25) Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest::testInvalidMaxWidth
Failed asserting that exception of type "\Symfony\Component\Validator\Exception\ConstraintDefinitionException" is thrown.

C:\xampp\php\phpunit:46

26) Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest::testInvalidMinHeight
Failed asserting that exception of type "\Symfony\Component\Validator\Exception\ConstraintDefinitionException" is thrown.

C:\xampp\php\phpunit:46

27) Symfony\Tests\Component\Validator\Constraints\ImageValidatorTest::testInvalidMaxHeight
Failed asserting that exception of type "\Symfony\Component\Validator\Exception\ConstraintDefinitionException" is thrown.

C:\xampp\php\phpunit:46

28) Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\PhpFrameworkExtensionTest::testValidationPaths
Failed asserting that 'E:\Projekte\symfony\src\Symfony\Component\Form/Resources/config/validation.xml' ends with "Component/Form/Resources/config/validation.xml".

E:\Projekte\symfony\src\Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest.php:234
C:\xampp\php\phpunit:46

29) Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\XmlFrameworkExtensionTest::testValidationPaths
Failed asserting that 'E:\Projekte\symfony\src\Symfony\Component\Form/Resources/config/validation.xml' ends with "Component/Form/Resources/config/validation.xml".

E:\Projekte\symfony\src\Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest.php:234
C:\xampp\php\phpunit:46

30) Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\YamlFrameworkExtensionTest::testValidationPaths
Failed asserting that 'E:\Projekte\symfony\src\Symfony\Component\Form/Resources/config/validation.xml' ends with "Component/Form/Resources/config/validation.xml".

E:\Projekte\symfony\src\Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest.php:234
C:\xampp\php\phpunit:46

Tests: 5489, Assertions: 11377, Failures: 30, Incomplete: 11, Skipped: 245.