diff --git a/tests/BBCodeParserTest.php b/tests/BBCodeParserTest.php index 0baee23..c111a4b 100644 --- a/tests/BBCodeParserTest.php +++ b/tests/BBCodeParserTest.php @@ -316,7 +316,10 @@ class BBCodeParserTest extends TestCase $parsers = $this->parser->getParsers(); $this->assertArrayHasKey('test', $parsers); - $this->assertArraySubset($expected, $parsers['test']); + foreach ($expected as $key => $value) { + $this->assertTrue(array_key_exists($key, $parsers['test'])); + $this->assertEquals($value, $parsers['test'][$key]); + } } public function testWeHaveAllParsersTested(): void @@ -387,11 +390,4 @@ class BBCodeParserTest extends TestCase return $options; } - /** - * @param array $expected - * @param mixed $argument1 - */ - private function assertArraySubset(array $expected, $argument1): void - { - } }