mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Test for bug parsing multiline strings with 'escaped' newlines
This commit is contained in:
parent
165190bb38
commit
2665c60b2f
2 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace Foo;
|
||||
|
||||
class SlashedA {
|
||||
function foo() {
|
||||
return sprintf("foo\
|
||||
bar");
|
||||
}
|
||||
}
|
||||
|
||||
class SlashedB {
|
||||
function bar() {
|
||||
print "baz";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue