NelmioApiDocBundle/Tests/Describer/AbstractDescriberTest.php

29 lines
576 B
PHP
Raw Normal View History

2016-08-01 19:58:57 +02:00
<?php
/*
2016-12-29 12:09:26 +01:00
* This file is part of the NelmioApiDocBundle package.
2016-08-01 19:58:57 +02:00
*
2016-12-29 12:09:26 +01:00
* (c) Nelmio
2016-08-01 19:58:57 +02:00
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2016-12-29 12:09:26 +01:00
namespace Nelmio\ApiDocBundle\Tests\Describer;
2016-08-01 19:58:57 +02:00
use EXSyst\Component\Swagger\Swagger;
2017-05-31 19:36:17 +02:00
use PHPUnit\Framework\TestCase;
2016-08-01 19:58:57 +02:00
2017-05-31 19:36:17 +02:00
abstract class AbstractDescriberTest extends TestCase
2016-08-01 19:58:57 +02:00
{
protected $describer;
protected function getSwaggerDoc(): Swagger
{
$api = new Swagger();
$this->describer->describe($api);
return $api;
}
}