Added .htaccess example to documentation (issue #232)

This commit is contained in:
Simon Sessingø
2017-05-09 02:31:01 +02:00
parent 0a58d36606
commit 50e8926272
2 changed files with 17 additions and 3 deletions
+3 -3
View File
@@ -77,10 +77,10 @@ class RouterRouteTest extends PHPUnit_Framework_TestCase
public function testPathParamRegex()
{
TestRouter::get('/test/path/{myParam}', 'DummyController@param', ['where' => ['myParam' => '([0-9]+)']]);
$response = TestRouter::debugOutput('/test/path/123123', 'get');
TestRouter::get('/{lang}/productscategories/{name}', 'DummyController@param', ['where' => ['lang' => '[a-z]+', 'name' => '[A-Za-z0-9\-]+']]);
$response = TestRouter::debugOutput('/it/productscategories/system', 'get');
$this->assertEquals('123123', $response);
$this->assertEquals('it, system', $response);
}
public function testDomainAllowedRoute()