| 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
$myVarassignment in line 1 and the$higherassignment in line 2 are dead. The first because$myVaris never used and the second because$higheris always overwritten for every possible time line.