From de3235a2a4c613523fd02c0145625f40ff2d8da3 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 25 Nov 2012 14:10:58 +0100 Subject: [PATCH] Add tests to prevent regressions on strings/nowdoc/comment stripping --- .../Test/Autoload/ClassMapGeneratorTest.php | 1 + .../Autoload/Fixtures/classmap/StripNoise.php | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php diff --git a/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php b/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php index 2f05e60b6..9f5606e0c 100644 --- a/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php +++ b/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php @@ -54,6 +54,7 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase 'Foo\\LargeClass' => realpath(__DIR__).'/Fixtures/classmap/LargeClass.php', 'Foo\\LargeGap' => realpath(__DIR__).'/Fixtures/classmap/LargeGap.php', 'Foo\\MissingSpace' => realpath(__DIR__).'/Fixtures/classmap/MissingSpace.php', + 'Foo\\StripNoise' => realpath(__DIR__).'/Fixtures/classmap/StripNoise.php', 'Unicode\\↑\\↑' => realpath(__DIR__).'/Fixtures/classmap/Unicode.php', )), array(__DIR__.'/Fixtures/template', array()), diff --git a/tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php b/tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php new file mode 100644 index 000000000..3fe5389be --- /dev/null +++ b/tests/Composer/Test/Autoload/Fixtures/classmap/StripNoise.php @@ -0,0 +1,30 @@ +