| 1 | <?php |
||
| 9 | class ComodoDecodeCSRTest extends XigenUnit |
||
| 10 | { |
||
| 11 | private $validMD5 = "98EB197EF83F7A9EB736ED7CEBD413CE"; |
||
| 12 | private $validSHA1 = "DA9C72B6F6BCB05772BF8543E19D1A41B0210E84"; |
||
| 13 | |||
| 14 | 3 | public function setUp() |
|
| 18 | |||
| 19 | 1 | public function testSettingCSR() |
|
| 30 | |||
| 31 | 2 | public function testGettingHashes() |
|
| 40 | |||
| 41 | 1 | public function testCheckingInstalled() |
|
| 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.