/** * Test all getters for the values set with the constructor. */ public function testConstructorAccessors() { $code = mt_rand(1, 30); $value = sha1(microtime(true)); $offset = mt_rand(1, 100); $token = new Token($code, $value, $offset); $this->assertSame($code, $token->getCode()); $this->assertSame($value, $token->getValue()); $this->assertSame($offset, $token->getOffset()); }