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;
|
|
|
|
|
|
|
|
abstract class AbstractDescriberTest extends \PHPUnit_Framework_TestCase
|
|
|
|
{
|
|
|
|
protected $describer;
|
|
|
|
|
|
|
|
protected function getSwaggerDoc(): Swagger
|
|
|
|
{
|
|
|
|
$api = new Swagger();
|
|
|
|
$this->describer->describe($api);
|
|
|
|
|
|
|
|
return $api;
|
|
|
|
}
|
|
|
|
}
|