/** * testSessionError method * * @return void */ public function testSessionError() { Session::$lastError = null; $Session = new SessionComponent($this->ComponentRegistry); $this->assertFalse($Session->error()); }