Exemplo n.º 1
0
 public function testNoSignature()
 {
     $string = 'AAAAABBBBBCCCCCDDDDD';
     $signed = 'AAAAABBBBBCCCCCDDDDD.BwaUb-rznw8ZNplw7Zo2wAhoR84';
     $this->assertEquals($string, Sign::unsigns($signed, 'my-key'));
     $this->setExpectedException('\\photon\\crypto\\Exception');
     Sign::unsigns($string, 'my-key');
 }