Example #1
0
 /**
  * Tests getting an asymmetric cypher.
  *
  * @dataProvider getAsymmetricCypherProvider
  * @covers empire\framework\crypto\CryptoFactory::getAsymmetricCypher
  *
  * @param string $name the name of the asymmetric cypher
  * @param boolean $exists whether the cypher exists
  */
 public function testGetAsymmetricCypher($name, $success)
 {
     $cypher = $this->instance->getAsymmetricCypher($name);
     if ($success) {
         $this->assertInstanceOf('empire\\framework\\crypto\\asymmetric\\AsymetricCypher', $cypher);
     } else {
         $this->assertNull($cypher);
     }
 }