コード例 #1
0
ファイル: TokenTest.php プロジェクト: stan5621/eduwind
 /**
  * @test
  */
 public function shouldAllowGetPreviouslySetHash()
 {
     $token = new Token();
     $token->setHash('theToken');
     $this->assertSame('theToken', $token->getHash());
 }
コード例 #2
0
ファイル: TokenTest.php プロジェクト: stan5621/eduwind
 /**
  * @test
  */
 public function shouldAllowGetHashGeneratedInConstructor()
 {
     $token = new \Payum\Model\Token();
     $this->assertNotEmpty($token->getHash());
 }