Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Dec 3, 2020
1 parent cae1a94 commit 4ae2506
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/ReportingLoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ function () {

self::assertSame(200, $response->getStatusCode());
self::assertEmpty((string) $response->getBody());
self::assertMatchesRegularExpression('#.* test.ERROR: Error: Foo in %{var2} and \[1,2,3\] .*#', stream_get_contents($logs));
self::assertMatchesRegularExpression(
'#.* test.ERROR: Error: Foo in %{var2} and \[1,2,3\] .*#',
stream_get_contents($logs)
);
}

public function testCustomPath()
Expand Down Expand Up @@ -207,6 +210,9 @@ function () {
rewind($logs);

self::assertEmpty((string) $response->getBody());
self::assertMatchesRegularExpression('#.* test.ERROR: Reporting \{"csp-report"\:\{.*#', stream_get_contents($logs));
self::assertMatchesRegularExpression(
'#.* test.ERROR: Reporting \{"csp-report"\:\{.*#',
stream_get_contents($logs)
);
}
}

0 comments on commit 4ae2506

Please sign in to comment.