public function it_does_not_display_gif_on_exception_page_if_the_bundle_is_not_enabled() { $kernel = new \Joli\GifExceptionBundle\Tests\app\AppKernel('prod', true); $kernel->boot(); $request = Request::create('/'); $response = $kernel->handle($request); self::assertSame(404, $response->getStatusCode()); $image = $this->getImage($response->getContent()); self::assertFalse($image->hasAttribute('data-gif')); }