Passed
Push — zero-is-false ( 14c39e...85b8a2 )
by Sam
06:15
created

testStartThrowsExceptionWithoutLoggerDefined()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SilverStripe\Logging\Tests;
4
5
use SilverStripe\Dev\SapphireTest;
6
use SilverStripe\Logging\MonologErrorHandler;
7
8
class MonologErrorHandlerTest extends SapphireTest
9
{
10
    /**
11
     * @expectedException \InvalidArgumentException
12
     * @expectedExceptionMessageRegExp /No Logger property passed to MonologErrorHandler/
13
     */
14
    public function testStartThrowsExceptionWithoutLoggerDefined()
15
    {
16
        $handler = new MonologErrorHandler();
17
        $handler->start();
18
    }
19
}
20