| 1 | <?php |
||
| 9 | class DecoderProviderTest extends \PHPUnit_Framework_TestCase |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var DecoderProvider |
||
| 13 | */ |
||
| 14 | protected $decoderProvider; |
||
| 15 | |||
| 16 | public function setUp() |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @dataProvider providerSupports |
||
| 26 | */ |
||
| 27 | public function testSupports($format, $expected) |
||
| 31 | |||
| 32 | public function providerSupports() |
||
| 39 | |||
| 40 | public function testGetDecoder() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @expectedException \InvalidArgumentException |
||
| 47 | * @expectedExceptionMessage Format 'markdown' is not supported by Seblegall\ApiValidatorBundle\Decoder\DecoderProvider. |
||
| 48 | */ |
||
| 49 | public function testGetDecoderInexistentFormat() |
||
| 53 | } |
||
| 54 |