コード例 #1
0
ファイル: HashTest.php プロジェクト: nhemsley/PHP-PasswordLib
 /**
  * @covers PasswordLib\Password\Implementation\Hash
  * @expectedException BadMethodCallException
  */
 public function testCreate()
 {
     $hash = new Hash('md5');
     $hash->create('foo');
 }
コード例 #2
0
 /**
  * @covers PasswordLib\Password\Implementation\Hash
  * @expectedException BadMethodCallException
  */
 public function testCreate()
 {
     $hash = new Hash(array('hash' => 'md5'));
     $hash->create('foo');
 }