Ejemplo n.º 1
0
 public function testLoadAndFail()
 {
     $key = new KeyPair();
     $key->load($this->pubkey, $this->privkey);
     $data_to_sign = "On the whole, I'd rather be in Philadelphia";
     $signature = 'This is not the correct signature';
     $this->assertFalse($key->verify($data_to_sign, $signature));
 }