You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
582 B
30 lines
582 B
<?php declare(strict_types=1);
|
|
|
|
/**
|
|
* @license Apache 2.0
|
|
*/
|
|
|
|
namespace OpenApi\Tests;
|
|
|
|
use OpenApi\Annotations\Get;
|
|
use OpenApi\Annotations\Post;
|
|
use OpenApi\Logger;
|
|
|
|
class LoggerTest extends OpenApiTestCase
|
|
{
|
|
public function shortenFixtures()
|
|
{
|
|
return [
|
|
[Get::class, '@OA\Get'],
|
|
[[Get::class, Post::class], ['@OA\Get', '@OA\Post']],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* @dataProvider shortenFixtures
|
|
*/
|
|
public function testShorten($classes, $expected)
|
|
{
|
|
$this->assertEquals($expected, Logger::shorten($classes));
|
|
}
|
|
}
|
|
|