assertEquals($expected, is_local_url($url)); } public function localUrlTestProvider() : array { return [ [ '/some/path', true ], [ 'https://mytest.org/some/path', true ], [ 'https://other.site/some/path', false ], ]; } }