$xchan_url ]; $this->assertEquals($expected, \Zotlabs\Lib\Libzot::get_rpost_path($observer)); } private function get_rpost_path_provider() : array { return [ 'xchan_url without port' => [ 'https://example.com/rpost?f=', 'https://example.com' ], 'xchan_url with port' => [ 'https://example.com:666/rpost?f=', 'https://example.com:666' ], 'xchan_url ignores path and args' => [ 'https://example.com/rpost?f=', 'https://example.com/path?arg1=balle' ], 'xchan_url with no scheme should default to https' => [ 'https://example.com/rpost?f=', 'example.com', ], ]; } }