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:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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');
|
||||
}
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user