Файл: vkolhoze.com/vendor/guzzle/guzzle/tests/Guzzle/Tests/Parser/UriTemplate/PeclUriTemplateTest.php
Строк: 19
<?php
namespace GuzzleTestsParsersUriTemplate;
use GuzzleParserUriTemplatePeclUriTemplate;
/**
* @covers GuzzleParserUriTemplatePeclUriTemplate
*/
class PeclUriTemplateTest extends AbstractUriTemplateTest
{
protected function setUp()
{
if (!extension_loaded('uri_template')) {
$this->markTestSkipped('uri_template PECL extension must be installed to test PeclUriTemplate');
}
}
/**
* @dataProvider templateProvider
*/
public function testExpandsUriTemplates($template, $expansion, $params)
{
$uri = new PeclUriTemplate($template);
$this->assertEquals($expansion, $uri->expand($template, $params));
}
}