Update CoreLibs with phpstan level 8, add qqFileUploader implementation base, add base Test class for testing
This commit is contained in:
61
www/lib/Test/Test.php
Normal file
61
www/lib/Test/Test.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* TEST sets only
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Test;
|
||||
|
||||
class Test
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
// calls all tests
|
||||
$this->testPrivate();
|
||||
$this->testProtected();
|
||||
$this->testPublic();
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
// __END__
|
||||
Reference in New Issue
Block a user