Skip to content

Commit 7a9887f

Browse files
committed
test: change nowdoc to heredoc
1 parent 6f90c99 commit 7a9887f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/AsyncTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ public static function asyncifyProvider(): array
2525
function (...$args) {
2626
return \file_get_contents(...$args);
2727
} :
28-
<<<'PHP'
28+
<<<EOF
2929
(
30-
function (...$args) {
31-
return \file_get_contents(...$args);
30+
function (...\$args) {
31+
return file_get_contents(...\$args);
3232
}
3333
)
34-
PHP
34+
EOF
3535
),
3636
['foo.txt']
3737
],
@@ -43,13 +43,13 @@ function (...$args) {
4343
],
4444
[
4545
[
46-
<<<'PHP'
46+
<<<EOF
4747
(
48-
function ($cmd) {
49-
return exec($cmd);
48+
function (\$cmd) {
49+
return exec(\$cmd);
5050
}
5151
)
52-
PHP,
52+
EOF,
5353
['echo "foo"'],
5454
],
5555
(

0 commit comments

Comments
 (0)