mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 20:16:45 +00:00
Escape __DIR__ in the test suite
This commit is contained in:
@@ -210,14 +210,14 @@ EOHTML
|
||||
|
||||
public function testTwigLeakOutputInDebugMode()
|
||||
{
|
||||
$output = exec(sprintf('%s %s debug', \PHP_BINARY, __DIR__.'/Fixtures/errors/leak-output.php'));
|
||||
$output = exec(sprintf('%s %s debug', \PHP_BINARY, escapeshellarg(__DIR__.'/Fixtures/errors/leak-output.php')));
|
||||
|
||||
$this->assertSame('Hello OOPS', $output);
|
||||
}
|
||||
|
||||
public function testDoesNotTwigLeakOutput()
|
||||
{
|
||||
$output = exec(sprintf('%s %s', \PHP_BINARY, __DIR__.'/Fixtures/errors/leak-output.php'));
|
||||
$output = exec(sprintf('%s %s', \PHP_BINARY, escapeshellarg(__DIR__.'/Fixtures/errors/leak-output.php')));
|
||||
|
||||
$this->assertSame('', $output);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user