Skip to content

Commit

Permalink
Fix: Add slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur authored and localheinz committed Jun 29, 2020
1 parent 6f90153 commit 83a3886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/Util/XDebugFilterScriptGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class XDebugFilterScriptGeneratorTest extends TestCase
{
public function testReturnsExpectedScript(): void
{
$expectedDirectory = __DIR__ . \DIRECTORY_SEPARATOR;
$expectedDirectory = \sprintf(\addslashes('%s' . \DIRECTORY_SEPARATOR), __DIR__);
$expected = <<<EOF
<?php declare(strict_types=1);
if (!\\function_exists('xdebug_set_filter')) {
Expand Down

0 comments on commit 83a3886

Please sign in to comment.