mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-01 21:06:15 +03:00
Fix tests
This commit is contained in:
parent
dc1f11a46f
commit
e8d4afd1af
1 changed files with 7 additions and 1 deletions
|
@ -25,7 +25,13 @@ class ControllersTest extends TestCase
|
|||
*/
|
||||
public function testSwaggerUiControllerInstanciation()
|
||||
{
|
||||
$controller = new SwaggerUiController(new ApiDocGenerator([], []), $this->createMock('Twig_Environment'));
|
||||
if (class_exists('Twig_Environment')) {
|
||||
$twigMock = $this->createMock('Twig_Environment');
|
||||
} else {
|
||||
$twigMock = $this->createMock('Twig\Environment');
|
||||
}
|
||||
|
||||
$controller = new SwaggerUiController(new ApiDocGenerator([], []), $twigMock);
|
||||
$controller(new Request());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue