This commit is contained in:
Simon Sessingø
2016-11-17 05:36:44 +01:00
parent b298665d33
commit c59ab12e1a
4 changed files with 19 additions and 29 deletions

View File

@@ -124,7 +124,7 @@ class RouterRouteTest extends PHPUnit_Framework_TestCase {
$this->result = false;
\Pecee\SimpleRouter\SimpleRouter::group(['domain' => '{subdomain}.world.com'], function() {
\Pecee\SimpleRouter\SimpleRouter::get('test', function($subdomain) {
\Pecee\SimpleRouter\SimpleRouter::get('test', function($subdomain = null) {
$this->result = ($subdomain === 'hello');
});
});