1 | <?php |
||
16 | class CommandTest extends \PHPUnit_Framework_TestCase |
||
17 | { |
||
18 | /** |
||
19 | * command mock |
||
20 | * |
||
21 | * @var \CLIFramework\Command |
||
22 | */ |
||
23 | private $command = null; |
||
24 | |||
25 | /** |
||
26 | * set up |
||
27 | */ |
||
28 | public function setUp() |
||
36 | |||
37 | /** |
||
38 | * tear down |
||
39 | */ |
||
40 | public function tearDown() |
||
44 | |||
45 | /** |
||
46 | * test configure |
||
47 | */ |
||
48 | public function testConfigure() |
||
71 | } |
||
72 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.