|
@@ -31,8 +31,8 @@ |
|
|
block discarded – undo |
|
31
|
31
|
|
|
32
|
32
|
// Check if the lines of code are silent. |
|
33
|
33
|
$source = file($class->getFileName()); |
|
34
|
|
- $this->assertRegExp('~^\s*{\s*$~', $source[$method->getStartLine()]); |
|
35
|
|
- $this->assertRegExp('~^\s*//~', $source[$method->getStartLine() + 1]); |
|
36
|
|
- $this->assertRegExp('~^\s*}\s*$~', $source[$method->getStartLine() + 2]); |
|
|
34
|
+ $this->assertRegExp('~^\s*{\s*$~', $source[ $method->getStartLine() ]); |
|
|
35
|
+ $this->assertRegExp('~^\s*//~', $source[ $method->getStartLine() + 1 ]); |
|
|
36
|
+ $this->assertRegExp('~^\s*}\s*$~', $source[ $method->getStartLine() + 2 ]); |
|
37
|
37
|
} |
|
38
|
38
|
} |
Please login to merge, or discard this patch.