Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testWithAdapter() |
||
16 | { |
||
17 | $queue = $this->createMock(QueueInterface::class); |
||
18 | $collector = new QueueCollector(); |
||
19 | $decorator = new QueueDecorator( |
||
20 | $queue, |
||
21 | $collector, |
||
22 | ); |
||
23 | |||
24 | $queueAdapter = $this->createMock(AdapterInterface::class); |
||
25 | |||
26 | $newDecorator = $decorator->withAdapter($queueAdapter); |
||
27 | |||
28 | $this->assertInstanceOf(QueueDecorator::class, $newDecorator); |
||
29 | } |
||
31 |