mirror of
https://github.com/php-win-ext/phpy.git
synced 2026-04-27 10:36:52 +02:00
adapt phpunit for windows (#36)
Co-authored-by: he426100 <{ID}+{username}@users.noreply.github.com>
This commit is contained in:
@@ -7,9 +7,9 @@ class ModuleTest extends TestCase
|
||||
{
|
||||
public function testImport()
|
||||
{
|
||||
$os = PyLoader::import('os');
|
||||
$uname = $os->uname();
|
||||
$this->assertEquals($uname->sysname, 'Linux');
|
||||
$platform = PyLoader::import('platform');
|
||||
$uname = $platform->uname();
|
||||
$this->assertStringContainsStringIgnoringCase([PHP_OS, 'WIN'][str_starts_with(PHP_OS, 'WIN')], (string)$uname->system);
|
||||
}
|
||||
|
||||
public function testNewObject()
|
||||
|
||||
Reference in New Issue
Block a user