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