aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-07-15 15:59:38 +0300
committerValentin Popov <info@valentineus.link>2020-07-15 16:03:27 +0300
commit5062d35a0d3a6463ef03c8f83fe2f93ac9099a62 (patch)
tree39d00300efbf1b5bfe66e616dc0575a456f4e525 /tests
parent9682cb058c468329a3273607d2fcb172fdfd9835 (diff)
downloadphp-epg-service-5062d35a0d3a6463ef03c8f83fe2f93ac9099a62.tar.xz
php-epg-service-5062d35a0d3a6463ef03c8f83fe2f93ac9099a62.zip
Updated parsers
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'tests')
-rw-r--r--tests/Parsers/IntegerParserTest.php4
-rw-r--r--tests/Parsers/StringParserTest.php2
2 files changed, 1 insertions, 5 deletions
diff --git a/tests/Parsers/IntegerParserTest.php b/tests/Parsers/IntegerParserTest.php
index 7f5cce7..56c13ce 100644
--- a/tests/Parsers/IntegerParserTest.php
+++ b/tests/Parsers/IntegerParserTest.php
@@ -29,10 +29,6 @@ use PHPUnit\Framework\TestCase;
* @package Tests\Parsers
*/
final class IntegerParserTest extends TestCase {
- public function testInvalid(): void {
- self::assertNull(IntegerParser::get(null));
- }
-
public function testValid(): void {
$number = Faker::create()->numberBetween(100, 200);
self::assertEquals($number, IntegerParser::get((string) $number));
diff --git a/tests/Parsers/StringParserTest.php b/tests/Parsers/StringParserTest.php
index 518defb..5c1a82b 100644
--- a/tests/Parsers/StringParserTest.php
+++ b/tests/Parsers/StringParserTest.php
@@ -29,7 +29,7 @@ use PHPUnit\Framework\TestCase;
*/
final class StringParserTest extends TestCase {
public function testValid(): void {
- $string = '<h1>Hello WorldÆØÅ!</h1>';
+ $string = '<h1>Hello World!</h1>';
self::assertEquals('Hello World!', StringParser::get($string));
}
}