Tests > refactoring & minor improvements

This commit is contained in:
Meritoo
2018-08-04 21:42:26 +02:00
parent 535ae65e5e
commit e850375c19
7 changed files with 340 additions and 301 deletions

View File

@@ -164,7 +164,7 @@ class MiscellaneousTest extends BaseTestCase
$expected = "int(123)\n";
if ($xdebugLoaded) {
$libraryPath = realpath(sprintf('%s%s', dirname(__FILE__), '/../..'));
$libraryPath = realpath(sprintf('%s%s', __DIR__, '/../..'));
$filePath = sprintf('%s%s', $libraryPath, '/src/Utilities/Miscellaneous.php:');
/*
@@ -348,7 +348,10 @@ class MiscellaneousTest extends BaseTestCase
public function testGetOperatingSystemNameServer()
{
self::assertEquals(php_uname('s'), Miscellaneous::getOperatingSystemNameServer());
/*
* While running Docker OS is a Linux
*/
self::assertEquals('Linux', Miscellaneous::getOperatingSystemNameServer());
}
public function testSubstringToWord()