for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Palmtree\CanonicalUrlBundle\Tests\Service;
use Palmtree\CanonicalUrlBundle\Service\CanonicalUrlGenerator;
use Palmtree\CanonicalUrlBundle\Tests\AbstractTest;
class CanonicalUrlGeneratorTest extends AbstractTest
{
/**
* @dataProvider configProvider
* @param array $config
*/
public function testGenerateUrl(array $config)
$urlGenerator = new CanonicalUrlGenerator($this->getRouter(), $config);
$url = $urlGenerator->generateUrl('foo');
$this->assertEquals('https://example.org/foo', $url);
}