| Total Complexity | 7 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class MockProfileSilverbullet extends \core\ProfileSilverbullet{ |
||
| 17 | |||
| 18 | /** |
||
| 19 | * |
||
| 20 | * @var int |
||
| 21 | */ |
||
| 22 | private $instId; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | private $generatedCertificates = array(); |
||
| 29 | |||
| 30 | /** |
||
| 31 | * |
||
| 32 | * @param \core\DBConnection $databaseHandle |
||
| 33 | */ |
||
| 34 | public function __construct(\core\DBConnection $databaseHandle){ |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * |
||
| 47 | */ |
||
| 48 | public function delete(){ |
||
| 49 | $this->databaseHandle->exec("DELETE FROM `institution` WHERE `inst_id`='" . $this->instId . "'"); |
||
| 50 | $this->databaseHandle->exec("DELETE FROM `profile` WHERE `profile_id`='" . $this->identifier . "'"); |
||
| 51 | } |
||
| 52 | |||
| 53 | /** |
||
| 54 | * |
||
| 55 | * {@inheritDoc} |
||
| 56 | * @see \core\ProfileSilverbullet::generateCertificate() |
||
| 57 | */ |
||
| 58 | public function generateCertificate($serial, $cn){ |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * |
||
| 64 | * @param string $serial |
||
| 65 | * @param string $cn |
||
| 66 | * @return boolean |
||
| 67 | */ |
||
| 68 | public function isGeneratedCertificate($serial, $cn){ |
||
| 72 |