Add basic Test run class

This commit is contained in:
Clemens Schwaighofer
2021-10-27 13:25:59 +09:00
parent 5230cbf5d3
commit c1212d8116
2 changed files with 75 additions and 0 deletions

View File

@@ -8,8 +8,12 @@ declare(strict_types=1);
namespace Test;
use Test\DB;
class Test
{
/** @var DB\TestDB */
private $test_db;
public function __construct()
{
@@ -17,6 +21,9 @@ class Test
$this->testPrivate();
$this->testProtected();
$this->testPublic();
// call intern
$this->test_db = new DB\TestDB();
}
public function __destruct()
@@ -56,6 +63,16 @@ class Test
$string = 'TEST Public';
return $string;
}
/**
* Undocumented function
*
* @return void
*/
public function testClasses(): void
{
$this->test_db->testRunDB();
}
}
// __END__