Example #1
0
 /**
  * Tests the existence of a hash function.
  *
  * @dataProvider hashFunctionExistsProvider
  * @covers empire\framework\crypto\CryptoFactory::hashFunctionExists
  *
  * @param string $name the name to test
  * @param boolean $exists whether the function exists
  */
 public function testHashingFunctionExists($name, $exists)
 {
     $this->assertSame($exists, $this->instance->hashFunctionExists($name));
 }