fix testStaticFunctionMapping to actually map a static method

pull/535/head
lubiana 12 months ago
parent 19e40b9b8a
commit dc6f907b26

@ -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