Commit 8c2b5755 authored by srsbiz's avatar srsbiz Committed by Fabien Potencier

OS independent regexp in Monolog test case

parent 6c442081
...@@ -97,7 +97,7 @@ class MonologServiceProviderTest extends \PHPUnit_Framework_TestCase ...@@ -97,7 +97,7 @@ class MonologServiceProviderTest extends \PHPUnit_Framework_TestCase
$request = Request::create('/error'); $request = Request::create('/error');
$app->handle($request); $app->handle($request);
$pattern = "#RuntimeException: very bad error \(uncaught exception\) at .*Silex/Tests/Provider/MonologServiceProviderTest\.php line \d+#"; $pattern = "#RuntimeException: very bad error \(uncaught exception\) at .* line \d+#";
$this->assertMatchingRecord($pattern, Logger::CRITICAL, $app['monolog.handler']); $this->assertMatchingRecord($pattern, Logger::CRITICAL, $app['monolog.handler']);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment