mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
20 lines
493 B
PHP
20 lines
493 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Logging\Tests;
|
|
|
|
use SilverStripe\Dev\SapphireTest;
|
|
use SilverStripe\Logging\MonologErrorHandler;
|
|
|
|
class MonologErrorHandlerTest extends SapphireTest
|
|
{
|
|
/**
|
|
* @expectedException \InvalidArgumentException
|
|
* @expectedExceptionMessageRegExp /No Logger property passed to MonologErrorHandler/
|
|
*/
|
|
public function testStartThrowsExceptionWithoutLoggerDefined()
|
|
{
|
|
$handler = new MonologErrorHandler();
|
|
$handler->start();
|
|
}
|
|
}
|