Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function testAssert(array $input, bool $expected): void |
||
18 | { |
||
19 | $assertions = []; |
||
20 | foreach ($input as $value) { |
||
21 | $internalAssertion = $this->createMock(AssertionInterface::class); |
||
22 | $internalAssertion->expects(self::atMost(1)) |
||
23 | ->method('assert') |
||
24 | ->willReturn($value); |
||
25 | |||
26 | $assertions[] = $internalAssertion; |
||
27 | } |
||
28 | |||
29 | $assertion = new One(...$assertions); |
||
30 | |||
31 | $acl = $this->createMock(Acl::class); |
||
32 | self::assertSame($expected, $assertion->assert($acl)); |
||
33 | } |
||
48 |