public function AbstractProcessTest::testGetErrorOutput in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testGetErrorOutput()
File
- vendor/
symfony/ process/ Tests/ AbstractProcessTest.php, line 301
Class
- AbstractProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\TestsCode
public function testGetErrorOutput() {
$p = $this
->getProcess(sprintf('%s -r %s', self::$phpBin, escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }')));
$p
->run();
$this
->assertEquals(3, preg_match_all('/ERROR/', $p
->getErrorOutput(), $matches));
}