Exemplo n.º 1
0
 /**
  * @test
  */
 public function shouldAllowGetPreviouslySetHash()
 {
     $token = new Token();
     $token->setHash('theToken');
     $this->assertSame('theToken', $token->getHash());
 }
Exemplo n.º 2
0
 /**
  * @test
  */
 public function shouldAllowGetHashGeneratedInConstructor()
 {
     $token = new \Payum\Model\Token();
     $this->assertNotEmpty($token->getHash());
 }