1 | <?php |
||
7 | class EmailsValidationFormTest extends \Codeception\Test\Unit |
||
8 | { |
||
9 | use ModelTestTrait; |
||
10 | |||
11 | /** |
||
12 | * @var \andmemasin\emailsvalidator\UnitTester |
||
13 | */ |
||
14 | protected $tester; |
||
15 | |||
16 | /** @var EmailsValidationForm */ |
||
17 | protected $model; |
||
18 | |||
19 | |||
20 | protected function _before() |
||
24 | |||
25 | protected function _after() |
||
28 | |||
29 | public function testLoadEmailAddresses() { |
||
35 | |||
36 | public function testProcess() { |
||
39 | |||
40 | |||
41 | |||
42 | /** |
||
43 | * Returns a good working LimeSurvey collector |
||
44 | * @return EmailsValidationForm |
||
45 | */ |
||
46 | public function baseObject(){ |
||
50 | |||
51 | } |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.