mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
Add more PHPUnit tests
This commit is contained in:
25
tests/SPC/GlobalDefinesTest.php
Normal file
25
tests/SPC/GlobalDefinesTest.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace SPC\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class GlobalDefinesTest extends TestCase
|
||||
{
|
||||
public function testGlobalDefines(): void
|
||||
{
|
||||
require __DIR__ . '/../../src/globals/defines.php';
|
||||
$this->assertTrue(defined('WORKING_DIR'));
|
||||
}
|
||||
|
||||
public function testInternalEnv(): void
|
||||
{
|
||||
require __DIR__ . '/../../src/globals/internal-env.php';
|
||||
$this->assertTrue(defined('GNU_ARCH'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user