fix(reddit): url encoding (#4010)

This commit is contained in:
Dag 2024-03-12 23:59:10 +01:00 committed by GitHub
parent 5b80af978f
commit 4bad1c140a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 62 additions and 49 deletions

View file

@ -157,29 +157,6 @@ class BridgeImplementationTest extends TestCase
}
}
/**
* @dataProvider dataBridgesProvider
*/
public function testVisibleMethods($path)
{
$bridgeAbstractMethods = get_class_methods(BridgeAbstract::class);
sort($bridgeAbstractMethods);
$feedExpanderMethods = get_class_methods(FeedExpander::class);
sort($feedExpanderMethods);
$this->setBridge($path);
$publicMethods = get_class_methods($this->bridge);
sort($publicMethods);
foreach ($publicMethods as $publicMethod) {
if ($this->bridge instanceof FeedExpander) {
$this->assertContains($publicMethod, $feedExpanderMethods);
} else {
$this->assertContains($publicMethod, $bridgeAbstractMethods);
}
}
}
/**
* @dataProvider dataBridgesProvider
*/