| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function testUseUnderlyingTypeWhenValueIsNotNull() |
||
| 36 | { |
||
| 37 | $type = new NullableType( |
||
| 38 | $inner = $this->createMock(ValidateArgument::class) |
||
| 39 | ); |
||
| 40 | $value = new \stdClass; |
||
| 41 | $inner |
||
| 42 | ->expects($this->once()) |
||
| 43 | ->method('__invoke') |
||
| 44 | ->with($value, 1); |
||
| 45 | |||
| 46 | $this->assertNull($type($value, 1)); |
||
| 47 | } |
||
| 49 |