Merge pull request #535 from lubiana/fix_dispatcher_test_testStaticFunctionMapping

fix testStaticFunctionMapping to actually map a static method
pull/536/head
n0nag0n 12 months ago committed by GitHub
commit d94645287e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -92,11 +92,11 @@ class DispatcherTest extends TestCase
// Map a static function
public function testStaticFunctionMapping()
{
$this->dispatcher->set('map2', 'tests\classes\Hello::sayHi');
$this->dispatcher->set('map2', 'tests\classes\Hello::sayBye');
$result = $this->dispatcher->run('map2');
self::assertEquals('hello', $result);
self::assertEquals('goodbye', $result);
}
// Map a class method

Loading…
Cancel
Save