diff options
Diffstat (limited to 'tests/app/Encodings')
| -rw-r--r-- | tests/app/Encodings/ASCIITest.php | 4 | ||||
| -rw-r--r-- | tests/app/Encodings/AnselTest.php | 2 | ||||
| -rw-r--r-- | tests/app/Encodings/CP437Test.php | 2 | ||||
| -rw-r--r-- | tests/app/Encodings/CP850Test.php | 2 | ||||
| -rw-r--r-- | tests/app/Encodings/ISO88591Test.php | 4 | ||||
| -rw-r--r-- | tests/app/Encodings/ISO88592Test.php | 4 | ||||
| -rw-r--r-- | tests/app/Encodings/UTF16BETest.php | 10 | ||||
| -rw-r--r-- | tests/app/Encodings/UTF16LETest.php | 10 | ||||
| -rw-r--r-- | tests/app/Encodings/Windows1250Test.php | 2 | ||||
| -rw-r--r-- | tests/app/Encodings/Windows1251Test.php | 2 | ||||
| -rw-r--r-- | tests/app/Encodings/Windows1252Test.php | 2 |
11 files changed, 22 insertions, 22 deletions
diff --git a/tests/app/Encodings/ASCIITest.php b/tests/app/Encodings/ASCIITest.php index 5a3905f00e..9244f9be0b 100644 --- a/tests/app/Encodings/ASCIITest.php +++ b/tests/app/Encodings/ASCIITest.php @@ -47,7 +47,7 @@ class ASCIITest extends TestCase $actual = $encoding->toUtf8($character); $expected = iconv(ASCII::NAME, UTF8::NAME, $character); - $this->assertSame($expected, $actual); + static::assertSame($expected, $actual); } foreach (range(128, 255) as $code_point) { @@ -55,7 +55,7 @@ class ASCIITest extends TestCase $actual = $encoding->toUtf8($character); $expected = UTF8::REPLACEMENT_CHARACTER; - $this->assertSame($expected, $actual); + static::assertSame($expected, $actual); } } } diff --git a/tests/app/Encodings/AnselTest.php b/tests/app/Encodings/AnselTest.php index 34c81d5550..cc1a071a3c 100644 --- a/tests/app/Encodings/AnselTest.php +++ b/tests/app/Encodings/AnselTest.php @@ -158,7 +158,7 @@ class AnselTest extends TestCase continue; } - $this->assertSame($utf8, $encoding->toUtf8($encoding->fromUtf8($utf8)), 'U+' . dechex($code)); + static::assertSame($utf8, $encoding->toUtf8($encoding->fromUtf8($utf8)), 'U+' . dechex($code)); } } } diff --git a/tests/app/Encodings/CP437Test.php b/tests/app/Encodings/CP437Test.php index 7358e423b0..11689f5f64 100644 --- a/tests/app/Encodings/CP437Test.php +++ b/tests/app/Encodings/CP437Test.php @@ -48,7 +48,7 @@ class CP437Test extends TestCase $actual = $encoding->toUtf8($character); $expected = iconv(CP437::NAME, UTF8::NAME, $character); - $this->assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); + static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); } } } diff --git a/tests/app/Encodings/CP850Test.php b/tests/app/Encodings/CP850Test.php index 9b06694113..7e426ed78a 100644 --- a/tests/app/Encodings/CP850Test.php +++ b/tests/app/Encodings/CP850Test.php @@ -45,7 +45,7 @@ class CP850Test extends TestCase $actual = $encoding->toUtf8($character); $expected = iconv(CP850::NAME, UTF8::NAME, $character); - $this->assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); + static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); } } } diff --git a/tests/app/Encodings/ISO88591Test.php b/tests/app/Encodings/ISO88591Test.php index 30eaa6d07b..9450cc8211 100644 --- a/tests/app/Encodings/ISO88591Test.php +++ b/tests/app/Encodings/ISO88591Test.php @@ -53,7 +53,7 @@ class ISO88591Test extends TestCase $character = chr($code_point); $actual = $encoding->toUtf8($character); - $this->assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, dechex($code_point) . '=>' . $actual); + static::assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, dechex($code_point) . '=>' . $actual); } foreach ($ranges as $range) { @@ -63,7 +63,7 @@ class ISO88591Test extends TestCase $expected = iconv(ISO88591::NAME, UTF8::NAME, $character); $expected = $expected === '' ? UTF8::REPLACEMENT_CHARACTER : $expected; - $this->assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); + static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); } } } diff --git a/tests/app/Encodings/ISO88592Test.php b/tests/app/Encodings/ISO88592Test.php index 6d36f78584..2990ead796 100644 --- a/tests/app/Encodings/ISO88592Test.php +++ b/tests/app/Encodings/ISO88592Test.php @@ -53,7 +53,7 @@ class ISO88592Test extends TestCase $character = chr($code_point); $actual = $encoding->toUtf8($character); - $this->assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, dechex($code_point) . '=>' . $actual); + static::assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, dechex($code_point) . '=>' . $actual); } foreach ($ranges as $range) { @@ -63,7 +63,7 @@ class ISO88592Test extends TestCase $expected = iconv(ISO88592::NAME, UTF8::NAME, $character); $expected = $expected === '' ? UTF8::REPLACEMENT_CHARACTER : $expected; - $this->assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); + static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); } } } diff --git a/tests/app/Encodings/UTF16BETest.php b/tests/app/Encodings/UTF16BETest.php index 35927b60a3..89cf49dcc0 100644 --- a/tests/app/Encodings/UTF16BETest.php +++ b/tests/app/Encodings/UTF16BETest.php @@ -49,14 +49,14 @@ class UTF16BETest extends TestCase $expected = iconv(UTF16BE::NAME, UTF8::NAME, $char); $actual = $encoding->toUtf8($char); - $this->assertSame($expected, $actual, 'U+' . dechex($code)); + static::assertSame($expected, $actual, 'U+' . dechex($code)); } foreach (range(0x80, 0xFF) as $code) { $char = chr(intdiv($code, 256)) . chr($code % 256); $actual = $encoding->toUtf8($char); - $this->assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, 'U+' . dechex($code)); + static::assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, 'U+' . dechex($code)); } foreach (range(0x100, 0xD7FF) as $code) { @@ -64,14 +64,14 @@ class UTF16BETest extends TestCase $expected = iconv(UTF16BE::NAME, UTF8::NAME, $char); $actual = $encoding->toUtf8($char); - $this->assertSame($expected, $actual, 'U+' . dechex($code)); + static::assertSame($expected, $actual, 'U+' . dechex($code)); } foreach (range(0xD800, 0xDFFF) as $code) { $char = chr(intdiv($code, 256)) . chr($code % 256); $actual = $encoding->toUtf8($char); - $this->assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, 'U+' . dechex($code)); + static::assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, 'U+' . dechex($code)); } foreach (range(0xE000, 0xFFFF) as $code) { @@ -79,7 +79,7 @@ class UTF16BETest extends TestCase $expected = iconv(UTF16BE::NAME, UTF8::NAME, $char); $actual = $encoding->toUtf8($char); - $this->assertSame($expected, $actual, 'U+' . dechex($code)); + static::assertSame($expected, $actual, 'U+' . dechex($code)); } } } diff --git a/tests/app/Encodings/UTF16LETest.php b/tests/app/Encodings/UTF16LETest.php index 78dd6dea69..7254383084 100644 --- a/tests/app/Encodings/UTF16LETest.php +++ b/tests/app/Encodings/UTF16LETest.php @@ -49,14 +49,14 @@ class UTF16LETest extends TestCase $expected = iconv(UTF16LE::NAME, UTF8::NAME, $char); $actual = $encoding->toUtf8($char); - $this->assertSame($expected, $actual, 'U+' . dechex($code)); + static::assertSame($expected, $actual, 'U+' . dechex($code)); } foreach (range(0x80, 0xFF) as $code) { $char = chr($code % 256) . chr(intdiv($code, 256)); $actual = $encoding->toUtf8($char); - $this->assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, 'U+' . dechex($code)); + static::assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, 'U+' . dechex($code)); } foreach (range(0x100, 0xD7FF) as $code) { @@ -64,14 +64,14 @@ class UTF16LETest extends TestCase $expected = iconv(UTF16LE::NAME, UTF8::NAME, $char); $actual = $encoding->toUtf8($char); - $this->assertSame($expected, $actual, 'U+' . dechex($code)); + static::assertSame($expected, $actual, 'U+' . dechex($code)); } foreach (range(0xD800, 0xDFFF) as $code) { $char = chr($code % 256) . chr(intdiv($code, 256)); $actual = $encoding->toUtf8($char); - $this->assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, 'U+' . dechex($code)); + static::assertSame(UTF8::REPLACEMENT_CHARACTER, $actual, 'U+' . dechex($code)); } foreach (range(0xE000, 0xFFFF) as $code) { @@ -79,7 +79,7 @@ class UTF16LETest extends TestCase $expected = iconv(UTF16LE::NAME, UTF8::NAME, $char); $actual = $encoding->toUtf8($char); - $this->assertSame($expected, $actual, 'U+' . dechex($code)); + static::assertSame($expected, $actual, 'U+' . dechex($code)); } } } diff --git a/tests/app/Encodings/Windows1250Test.php b/tests/app/Encodings/Windows1250Test.php index 8708c6a46f..52242f370d 100644 --- a/tests/app/Encodings/Windows1250Test.php +++ b/tests/app/Encodings/Windows1250Test.php @@ -49,7 +49,7 @@ class Windows1250Test extends TestCase $expected = iconv(Windows1250::NAME, 'UTF-8//IGNORE', $character); $expected = $expected === '' ? UTF8::REPLACEMENT_CHARACTER : $expected; - $this->assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); + static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); } } } diff --git a/tests/app/Encodings/Windows1251Test.php b/tests/app/Encodings/Windows1251Test.php index ac850138c8..62dfde745a 100644 --- a/tests/app/Encodings/Windows1251Test.php +++ b/tests/app/Encodings/Windows1251Test.php @@ -49,7 +49,7 @@ class Windows1251Test extends TestCase $expected = iconv(Windows1251::NAME, 'UTF-8//IGNORE', $character); $expected = $expected === '' ? UTF8::REPLACEMENT_CHARACTER : $expected; - $this->assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); + static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); } } } diff --git a/tests/app/Encodings/Windows1252Test.php b/tests/app/Encodings/Windows1252Test.php index 590864e608..9b853ab30d 100644 --- a/tests/app/Encodings/Windows1252Test.php +++ b/tests/app/Encodings/Windows1252Test.php @@ -49,7 +49,7 @@ class Windows1252Test extends TestCase $expected = iconv(Windows1252::NAME, 'UTF-8//IGNORE', $character); $expected = $expected === '' ? UTF8::REPLACEMENT_CHARACTER : $expected; - $this->assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); + static::assertSame($expected, $actual, dechex($code_point) . '=>' . $actual . ' ' . $expected); } } } |
