| 1 | <?php |
||
| 15 | class TableMapperTest extends \PHPUnit_Framework_TestCase |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Tear down all mock objects |
||
| 19 | */ |
||
| 20 | public function tearDown() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Test to check the table exists |
||
| 27 | * @return string |
||
| 28 | * @return Exception |
||
| 29 | * **/ |
||
| 30 | public function testcheckTableName() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Test to get classname from class namespace |
||
| 40 | * */ |
||
| 41 | public function testGetClassName() |
||
| 45 | } |
||
| 46 |
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.