/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { //Suppress sendHeaders $this->object = $this->getMock("Application", array('sendHeaders')); $this->object->setControllerPath(__DIR__ . '/controllers'); $this->object->expects($this->any())->method("sendHeaders")->will($this->returnValue(null)); }