| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function testCompare() : void |
||
| 21 | { |
||
| 22 | $changes = Changes::fromList(Change::added(uniqid('foo', true), true)); |
||
| 23 | |||
| 24 | $classBased = $this->createMock(ClassBased::class); |
||
| 25 | $fromTrait = $this->createMock(ReflectionClass::class); |
||
| 26 | $toTrait = $this->createMock(ReflectionClass::class); |
||
| 27 | |||
| 28 | $classBased |
||
| 29 | ->expects(self::once()) |
||
| 30 | ->method('__invoke') |
||
| 31 | ->with($fromTrait, $toTrait) |
||
| 32 | ->willReturn($changes); |
||
| 33 | |||
| 34 | self::assertSame($changes, (new UseClassBasedChecksOnATrait($classBased))->__invoke($fromTrait, $toTrait)); |
||
| 35 | } |
||
| 37 |