Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function testSettingTestVersion() |
||
24 | { |
||
25 | $file = $this->sniffFile('sniff-examples/forbidden_negative_bitshift.php', '5.6'); |
||
26 | $this->assertNoViolation($file, 3); |
||
27 | $this->assertNoViolation($file, 5); |
||
28 | |||
29 | $file = $this->sniffFile('sniff-examples/forbidden_negative_bitshift.php', '7.0'); |
||
30 | $this->assertError($file, 3, 'Bitwise shifts by negative number will throw an ArithmeticError in PHP 7.0'); |
||
31 | $this->assertNoViolation($file, 5); |
||
32 | } |
||
33 | } |
||
35 |