public function testSessionInitialState() { $session = new Session(); $this->assertNull($session->getId(), 'Session::id should be null'); $this->assertTrue($session->getAdded() instanceof DateTime, 'Session::added should have a DateTime value.'); $this->assertTrue($session->getAdded() == new DateTime(), 'Session::added should be set to today when instantiated'); $this->assertNull($session->getRemoved(), 'Session::removed should be null'); $this->assertNull($session->getUser(), 'Session::user should be null'); $this->assertNull($session->getIpAddress(), 'Session::ipAddress should be null'); $this->assertNull($session->getExpires(), 'Session::expires should be null'); }