Files
development/www/lib/Test/Test.php
Clemens Schwaighofer b0a8783276 Logging class major change, Debug\Support update
old Debug\Logging is in Debug\LoggingLegacy and Debug\Logging extends
Logging\Logging

Logging\Logging is a new class with most of the functionality except
there is no more print/outout to screen, but we use the default log
levels (RFC5424)
The plan is to be a frontend between the old type class and
Monolog\Monolog

Updated all other classes to use new class interface
2023-05-30 18:12:24 +09:00

88 lines
1.1 KiB
PHP

<?php
/*
* TEST sets only
*
* composer.json
* autoloader: {
* ...
* "psr-4": {
* "gullevek\\CoreLibs\\": "src/"
* }
* }
*/
declare(strict_types=1);
namespace Test;
use Test\DB;
class Test
{
/** @var DB\TestDB */
private $test_db;
public function __construct(
\CoreLibs\Logging\Logging $log
) {
// calls all tests
$this->testPrivate();
$this->testProtected();
$this->testPublic();
// call intern
$this->test_db = new DB\TestDB($log);
}
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();
}
}
// __END__