Controller = new Controller(); $this->Controller->startupProcess(); } public function tearDown() { parent::tearDown(); unset($this->Controller); } /** * CommonComponentTest::testLoadComponent() * * @return void */ public function testDisableCache() { $this->Controller->disableCache(); $result = $this->Controller->response->header(); $expected = array('Pragma', 'Expires', 'Last-Modified', 'Cache-Control'); $this->assertSame($expected, array_keys($result)); } }