Total Complexity | 3 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class NullableTypeTest extends TestCase |
||
13 | { |
||
14 | public function testInterface() |
||
15 | { |
||
16 | $type = new NullableType( |
||
17 | $this->createMock(ValidateArgument::class) |
||
18 | ); |
||
19 | |||
20 | $this->assertInstanceOf(ValidateArgument::class, $type); |
||
21 | } |
||
22 | |||
23 | public function testDoesntThrowWhenValueIsNull() |
||
33 | } |
||
34 | |||
35 | public function testUseUnderlyingTypeWhenValueIsNotNull() |
||
47 | } |
||
48 | } |
||
49 |