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:
Dag 2022-04-13 21:04:10 +02:00 committed by GitHub
parent 183004f954
commit d62b977394
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 20 additions and 42 deletions

View file

@ -1,5 +1,4 @@
<?php
require_once __DIR__ . '/../lib/rssbridge.php';
use PHPUnit\Framework\TestCase;
@ -25,8 +24,6 @@ class FormatImplementationTest extends TestCase {
$this->assertInstanceOf(FormatInterface::class, $this->obj);
}
////////////////////////////////////////////////////////////////////////////
public function dataFormatsProvider() {
$formats = array();
foreach (glob(PATH_LIB_FORMATS . '*.php') as $path) {