1 | <?php |
||
17 | class ApplicationTest extends \PHPUnit_Framework_TestCase |
||
18 | { |
||
19 | /** |
||
20 | * kernel. |
||
21 | * |
||
22 | * @var \CLIFramework\Kernel |
||
23 | */ |
||
24 | private $kernel = null; |
||
25 | |||
26 | /** |
||
27 | * set up |
||
28 | */ |
||
29 | public function setUp() |
||
33 | |||
34 | /** |
||
35 | * tear down |
||
36 | */ |
||
37 | public function tearDown() |
||
41 | |||
42 | /** |
||
43 | * test construct |
||
44 | */ |
||
45 | public function testConstruct() |
||
60 | |||
61 | /** |
||
62 | * test get kernel. |
||
63 | */ |
||
64 | public function testGetKernel() |
||
72 | |||
73 | /** |
||
74 | * test do run |
||
75 | */ |
||
76 | public function testDoRun() |
||
91 | } |
||
92 |
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.