Example #1
0
 /**
  * @covers PasswordLib\Password\Implementation\Hash
  * @expectedException BadMethodCallException
  */
 public function testCreate()
 {
     $hash = new Hash('md5');
     $hash->create('foo');
 }
Example #2
0
 /**
  * @covers PasswordLib\Password\Implementation\Hash
  * @expectedException BadMethodCallException
  */
 public function testCreate()
 {
     $hash = new Hash(array('hash' => 'md5'));
     $hash->create('foo');
 }