public function testApiAddRuleHandler_AddsRuleHandler()
{
$router = $this->createRouter();
$matcher = function () {
};
$handler = function () {
};
$rule = new RouterRule($router, $matcher, $handler);
$this->callProtectedMethod($router, 'addRuleHandler', [$rule]);
$rules = $this->getProtectedProperty($router, 'rules');
$rulesPointer = $this->getProtectedProperty($router, 'rulesPointer');
$this->assertCount(1, $rules);
$this->assertSame(1, $rulesPointer);
}