41 lines
623 B
PHP
41 lines
623 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace tests;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
/**
|
|
* Test base setup
|
|
* @testdox AAASetupData\AAASetupDataTest just setup BASE
|
|
*/
|
|
final class CoreLibsAAASetupDataTest extends TestCase
|
|
{
|
|
/**
|
|
* Covers nothing
|
|
*
|
|
* @testdox Just setup BASE
|
|
*
|
|
* @return void
|
|
*/
|
|
public function testSetupData(): void
|
|
{
|
|
if (!defined('BASE')) {
|
|
define(
|
|
'BASE',
|
|
str_replace('/configs', '', __DIR__)
|
|
. DIRECTORY_SEPARATOR
|
|
);
|
|
}
|
|
$this->assertEquals(
|
|
str_replace('/configs', '', __DIR__)
|
|
. DIRECTORY_SEPARATOR,
|
|
BASE,
|
|
'BASE Path set check'
|
|
);
|
|
}
|
|
}
|
|
|
|
// __END__
|