db = $db; $this->log = $log; // calls all tests $this->testPrivate(); $this->testProtected(); $this->testPublic(); // call intern $this->test_db = new DB\TestDB($this); } public function __destruct() { // calls all close tests } /** * Undocumented function * * @return string */ protected function testPrivate(): string { $string = 'TEST Private'; return $string; } /** * Undocumented function * * @return string */ protected function testProtected(): string { $string = 'TEST Protected'; return $string; } /** * Undocumented function * * @return string */ public function testPublic(): string { $string = 'TEST Public'; return $string; } /** * Undocumented function * * @return void */ public function testClasses(): void { $this->test_db->testRunDB(); } /** * Undocumented function * * @return void */ public function testDbCall(): void { $q = <<db->dbReturnRow($q))) { print "OUTPUT: " . $this->log->prAr($res); } else { $this->log->error('Failure to run query'); } } } // __END__