We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testHasAnyRole() |
||
16 | { |
||
17 | $this->assertExpressionCompile('hasAnyRole(["ROLE_ADMIN", "ROLE_USER"])', 'ROLE_ADMIN'); |
||
18 | |||
19 | $this->assertExpressionCompile( |
||
20 | 'hasAnyRole(["ROLE_ADMIN", "ROLE_USER"])', |
||
21 | $this->matchesRegularExpression('/^ROLE_(USER|ADMIN)$/'), |
||
22 | [], |
||
23 | $this->exactly(2), |
||
24 | false, |
||
25 | 'assertFalse' |
||
26 | ); |
||
27 | } |
||
28 | } |
||
29 |