public function setUp()
{
$this->request = $this->getMock('Imbo\\Http\\Request\\Request');
$this->response = $this->getMock('Imbo\\Http\\Response\\Response');
$this->database = $this->getMock('Imbo\\Database\\DatabaseInterface');
$this->storage = $this->getMock('Imbo\\Storage\\StorageInterface');
$this->event = $this->getMock('Imbo\\EventManager\\Event');
$this->manager = $this->getMockBuilder('Imbo\\EventManager\\EventManager')->disableOriginalConstructor()->getMock();
$this->event->expects($this->any())->method('getRequest')->will($this->returnValue($this->request));
$this->event->expects($this->any())->method('getResponse')->will($this->returnValue($this->response));
$this->event->expects($this->any())->method('getDatabase')->will($this->returnValue($this->database));
$this->event->expects($this->any())->method('getStorage')->will($this->returnValue($this->storage));
$this->event->expects($this->any())->method('getManager')->will($this->returnValue($this->manager));
$this->resource = $this->getNewResource();
}