mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-10 11:39:25 +03:00
33 lines
795 B
PHP
33 lines
795 B
PHP
|
<?php
|
||
|
|
||
|
/*
|
||
|
* This file is part of the ApiDocBundle package.
|
||
|
*
|
||
|
* (c) EXSyst
|
||
|
*
|
||
|
* For the full copyright and license information, please view the LICENSE
|
||
|
* file that was distributed with this source code.
|
||
|
*/
|
||
|
|
||
|
namespace EXSyst\Bundle\ApiDocBundle\Tests\Describer;
|
||
|
|
||
|
use EXSyst\Bundle\ApiDocBundle\Describer\SwaggerPhpDescriber;
|
||
|
use EXSyst\Component\Swagger\Swagger;
|
||
|
|
||
|
class SwaggerPhpDescriberTest extends AbstractDescriberTest
|
||
|
{
|
||
|
public function testDescribe()
|
||
|
{
|
||
|
$api = $this->getSwaggerDoc();
|
||
|
$info = $api->getInfo();
|
||
|
|
||
|
$this->assertEquals('My Awesome App', $info->getTitle());
|
||
|
$this->assertEquals('1.3', $info->getVersion());
|
||
|
}
|
||
|
|
||
|
protected function setUp()
|
||
|
{
|
||
|
$this->describer = new SwaggerPhpDescriber(__DIR__.'/../Fixtures');
|
||
|
}
|
||
|
}
|