mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-24 04:34:56 +02:00
refactor: ./tests (#2649)
* refactor: ./tests * test: consolidate testsuites * refactor: move config setup into rssbridge.php Makes it easier to unit test. * lint
This commit is contained in:
parent
183004f954
commit
d62b977394
11 changed files with 20 additions and 42 deletions
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
require_once __DIR__ . '/../lib/rssbridge.php';
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
|
@ -52,7 +51,9 @@ class BridgeImplementationTest extends TestCase {
|
|||
$this->setBridge($path);
|
||||
|
||||
$multiMinimum = 2;
|
||||
if (isset($this->obj::PARAMETERS['global'])) ++$multiMinimum;
|
||||
if (isset($this->obj::PARAMETERS['global'])) {
|
||||
++$multiMinimum;
|
||||
}
|
||||
$multiContexts = (count($this->obj::PARAMETERS) >= $multiMinimum);
|
||||
$paramsSeen = array();
|
||||
|
||||
|
@ -202,8 +203,6 @@ class BridgeImplementationTest extends TestCase {
|
|||
$this->checkUrl($this->obj->getURI());
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
public function dataBridgesProvider() {
|
||||
$bridges = array();
|
||||
foreach (glob(PATH_LIB_BRIDGES . '*.php') as $path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue