Fix various errors.

This commit is contained in:
flash 2018-05-16 20:28:56 +02:00
parent 26ed87ce02
commit f70e0c2349
2 changed files with 4 additions and 5 deletions

View file

@ -102,7 +102,7 @@ class Directory
foreach ($split_path as $path_part) { foreach ($split_path as $path_part) {
$existing_path .= $path_part . self::SEPARATOR; $existing_path .= $path_part . self::SEPARATOR;
if ($on_windows && substr($existing_path, 1, 2) === ':\\') { if ($on_windows && substr($path_part, 1, 2) === ':\\') {
continue; continue;
} }

View file

@ -2,7 +2,6 @@
namespace MisuzuTests; namespace MisuzuTests;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use Misuzu\Zalgo;
class ZalgoTest extends TestCase class ZalgoTest extends TestCase
{ {
@ -12,17 +11,17 @@ class ZalgoTest extends TestCase
{ {
$this->assertEquals( $this->assertEquals(
static::TEST_STRING, static::TEST_STRING,
Zalgo::strip(Zalgo::run(static::TEST_STRING, Zalgo::ZALGO_MODE_MINI)) zalgo_strip(zalgo_run(static::TEST_STRING, MSZ_ZALGO_MODE_MINI))
); );
$this->assertEquals( $this->assertEquals(
static::TEST_STRING, static::TEST_STRING,
Zalgo::strip(Zalgo::run(static::TEST_STRING, Zalgo::ZALGO_MODE_NORMAL)) zalgo_strip(zalgo_run(static::TEST_STRING, MSZ_ZALGO_MODE_NORMAL))
); );
$this->assertEquals( $this->assertEquals(
static::TEST_STRING, static::TEST_STRING,
Zalgo::strip(Zalgo::run(static::TEST_STRING, Zalgo::ZALGO_MODE_MAX)) zalgo_strip(zalgo_run(static::TEST_STRING, MSZ_ZALGO_MODE_MAX))
); );
} }
} }