public function testApiAddDefault_AddsDefault()
{
$router = $this->createRouter();
$handler = function () {
};
$rules = $this->getProtectedProperty($router, 'anchors');
$rulesPointer = $this->getProtectedProperty($router, 'anchorsPointer');
$this->assertCount(0, $rules);
$this->assertSame(0, $rulesPointer);
$router->addDefault($handler);
$rules = $this->getProtectedProperty($router, 'anchors');
$rulesPointer = $this->getProtectedProperty($router, 'anchorsPointer');
$this->assertCount(1, $rules);
$this->assertSame(1, $rulesPointer);
}