1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 21:30:14 +02:00

refactor: add php autoloader (#2655)

This commit is contained in:
Dag
2022-04-26 00:57:59 +02:00
committed by GitHub
parent b090b17bbf
commit 0ef298f9cc
9 changed files with 16 additions and 12 deletions

View File

@@ -48,7 +48,6 @@ class ActionImplementationTest extends TestCase {
}
private function setAction($path) {
require_once $path;
$this->class = basename($path, '.php');
$this->assertTrue(class_exists($this->class), 'class ' . $this->class . ' doesn\'t exist');
$this->obj = new $this->class();

View File

@@ -212,7 +212,6 @@ class BridgeImplementationTest extends TestCase {
}
private function setBridge($path) {
require_once $path;
$this->class = basename($path, '.php');
$this->assertTrue(class_exists($this->class), 'class ' . $this->class . ' doesn\'t exist');
$this->obj = new $this->class();

View File

@@ -34,7 +34,6 @@ class CacheImplementationTest extends TestCase {
}
private function setCache($path) {
require_once $path;
$this->class = basename($path, '.php');
$this->assertTrue(class_exists($this->class), 'class ' . $this->class . ' doesn\'t exist');
}

View File

@@ -33,7 +33,6 @@ class FormatImplementationTest extends TestCase {
}
private function setFormat($path) {
require_once $path;
$this->class = basename($path, '.php');
$this->assertTrue(class_exists($this->class), 'class ' . $this->class . ' doesn\'t exist');
$this->obj = new $this->class();