diff options
Diffstat (limited to 'tests/Misc/UtfStringTest.php')
-rw-r--r-- | tests/Misc/UtfStringTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Misc/UtfStringTest.php b/tests/Misc/UtfStringTest.php index a0a0bdc..d0c95a3 100644 --- a/tests/Misc/UtfStringTest.php +++ b/tests/Misc/UtfStringTest.php @@ -26,14 +26,14 @@ class UtfStringTest extends TestCase $str = new UtfString(static::TEST_PHRASE); // offsetExists - $this->assertTrue(isset($str[static::TEST_PHRASE_LEN - 1])); - $this->assertFalse(isset($str[-1])); - $this->assertFalse(isset($str[static::TEST_PHRASE_LEN])); + $this->assertArrayHasKey(static::TEST_PHRASE_LEN - 1, $str); + $this->assertArrayNotHasKey(-1, $str); + $this->assertArrayNotHasKey(static::TEST_PHRASE_LEN, $str); // offsetGet $this->assertEquals('.', $str[static::TEST_PHRASE_LEN - 1]); - $this->assertEquals(null, $str[-1]); - $this->assertEquals(null, $str[static::TEST_PHRASE_LEN]); + $this->assertNull($str[-1]); + $this->assertNull($str[static::TEST_PHRASE_LEN]); } /** |