public function testCatchException() { $stub = \Mockery::mock('Load'); $stub->shouldReceive('getExceptionHandler')->once()->andReturnSelf(); $stub->shouldReceive('catchException')->once(); MockTest::inject($this->app, 'load', $stub); $this->app->catchException(null); }