Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0d54342

Browse filesBrowse files
committed
Add a test case for stringifying of Process arguments
1 parent f89ef42 commit 0d54342
Copy full SHA for 0d54342

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed

‎src/Symfony/Component/Process/Tests/ProcessTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/Tests/ProcessTest.php
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ public function testEscapeArgument($arg)
14921492
$p = new Process(array(self::$phpBin, '-r', 'echo $argv[1];', $arg));
14931493
$p->run();
14941494

1495-
$this->assertSame($arg, $p->getOutput());
1495+
$this->assertSame((string) $arg, $p->getOutput());
14961496
}
14971497

14981498
/**
@@ -1505,7 +1505,7 @@ public function testEscapeArgumentWhenInheritEnvDisabled($arg)
15051505
$p->inheritEnvironmentVariables(false);
15061506
$p->run();
15071507

1508-
$this->assertSame($arg, $p->getOutput());
1508+
$this->assertSame((string) $arg, $p->getOutput());
15091509
}
15101510

15111511
public function testRawCommandLine()
@@ -1535,6 +1535,9 @@ public function provideEscapeArgument()
15351535
yield array("a!b\tc");
15361536
yield array('a\\\\"\\"');
15371537
yield array('éÉèÈàÀöä');
1538+
yield array(null);
1539+
yield array(1);
1540+
yield array(1.1);
15381541
}
15391542

15401543
public function testEnvArgument()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.