| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function testTrait() |
||
| 21 | { |
||
| 22 | /* @var \PHPUnit_Framework_MockObject_MockObject|LimitTrait $mock */ |
||
| 23 | $mock = $this->getMockForTrait('\Jalle19\StatusManager\Database\LimitTrait'); |
||
| 24 | |||
| 25 | $mock->expects($this->once()) |
||
|
|
|||
| 26 | ->method('limit'); |
||
| 27 | |||
| 28 | $mock->filterByLimit(10); |
||
| 29 | |||
| 30 | $mock->expects($this->never()) |
||
| 31 | ->method('limit'); |
||
| 32 | |||
| 33 | $mock->filterByLimit(null); |
||
| 34 | } |
||
| 37 |