mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 09:35:28 +03:00
[BridgeImplementationTest] Implement feature for testing detectParameters method
This commit is contained in:
parent
a18af3952d
commit
c580219627
2 changed files with 9 additions and 0 deletions
|
@ -75,6 +75,11 @@ abstract class BridgeAbstract implements BridgeInterface {
|
|||
*/
|
||||
const PARAMETERS = array();
|
||||
|
||||
/**
|
||||
* Test cases for detectParameters for the bridge
|
||||
*/
|
||||
const TEST_DETECT_PARAMETERS = array();
|
||||
|
||||
/**
|
||||
* Holds the list of items collected by the bridge
|
||||
*
|
||||
|
|
|
@ -135,6 +135,10 @@ class BridgeImplementationTest extends TestCase {
|
|||
}
|
||||
}
|
||||
|
||||
foreach($this->obj::TEST_DETECT_PARAMETERS as $url => $params) {
|
||||
$this->assertEquals($this->obj->detectParameters($url), $params);
|
||||
}
|
||||
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue