From 2665c60b2f03fe8069b1825bbe33e772367f518b Mon Sep 17 00:00:00 2001 From: David Simon Date: Tue, 21 May 2013 16:29:11 -0400 Subject: [PATCH] Test for bug parsing multiline strings with 'escaped' newlines --- .../Test/Autoload/ClassMapGeneratorTest.php | 2 ++ .../classmap/BackslashLineEndingString.php | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests/Composer/Test/Autoload/Fixtures/classmap/BackslashLineEndingString.php diff --git a/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php b/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php index 40d79849c..ddadc89c5 100644 --- a/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php +++ b/tests/Composer/Test/Autoload/ClassMapGeneratorTest.php @@ -55,6 +55,8 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase 'Foo\\LargeGap' => realpath(__DIR__).'/Fixtures/classmap/LargeGap.php', 'Foo\\MissingSpace' => realpath(__DIR__).'/Fixtures/classmap/MissingSpace.php', 'Foo\\StripNoise' => realpath(__DIR__).'/Fixtures/classmap/StripNoise.php', + 'Foo\\SlashedA' => realpath(__DIR__).'/Fixtures/classmap/BackslashLineEndingString.php', + 'Foo\\SlashedB' => realpath(__DIR__).'/Fixtures/classmap/BackslashLineEndingString.php', 'Unicode\\↑\\↑' => realpath(__DIR__).'/Fixtures/classmap/Unicode.php', )), array(__DIR__.'/Fixtures/template', array()), diff --git a/tests/Composer/Test/Autoload/Fixtures/classmap/BackslashLineEndingString.php b/tests/Composer/Test/Autoload/Fixtures/classmap/BackslashLineEndingString.php new file mode 100644 index 000000000..6c8b94c9b --- /dev/null +++ b/tests/Composer/Test/Autoload/Fixtures/classmap/BackslashLineEndingString.php @@ -0,0 +1,16 @@ +