public function testReturnTypes() { $this->assertSame($this->instance->getId(), 42, 'Should return integer value'); $this->assertSame($this->instance->isAuthenticated(), true, 'Should return boolean value'); $this->assertSame($this->instance->getEmail(), '*****@*****.**'); $this->assertSame($this->instance->getRealName(), 'John Doe'); $this->assertSame((string) $this->instance, 'John Doe <*****@*****.**>', 'toString() should return both values as a string.'); }