| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 31 | public function testGettingHashes() |
||
| 32 | { |
||
| 33 | $csr = $this->loadTestCSR(); |
||
| 34 | $this->ComodoDecodeCSR->setCSR($csr); |
||
| 35 | $Hashes = $this->ComodoDecodeCSR->getHashes(); |
||
| 36 | |||
| 37 | $this->assertSame($this->validMD5, $Hashes["md5"], "md5 didn't match the correct value"); |
||
| 38 | $this->assertSame($this->validSHA1, $Hashes["sha1"], "sha1 didn't match the correct value"); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: