/** * @test */ public function shouldAllowGetIdentificatorPreviouslySetAsDetails() { $expectedIdentificator = new Identificator('anId', 'stdClass'); $token = new Token(); $token->setDetails($expectedIdentificator); $this->assertSame($expectedIdentificator, $token->getDetails()); }