public function testApiIsOriginAllowed_ReturnsTrue_WhenIpIsBlocked() { $ip = '50.50.50.50'; $server = $this->createServer(); $router = $this->createRouter($server); $router->allowOrigin($ip); $this->assertTrue($router->isOriginAllowed($ip)); }