diff --git a/tests/EncodingTest.php b/tests/EncodingTest.php index cc479a6..56bd54a 100644 --- a/tests/EncodingTest.php +++ b/tests/EncodingTest.php @@ -11,7 +11,7 @@ class EncodingTest extends TestCase { #[DataProvider( "provideVariantEquals" )] public function testVariantEquals( Encoding $encoding, string $encodingString ): void { - $this->assertEquals( $encoding->value, $encodingString ); + $this->assertSame( $encoding->value, $encodingString ); } public static function provideVariantEquals(): array { diff --git a/tests/ErrorCodeTest.php b/tests/ErrorCodeTest.php index 3948df6..0f0560d 100644 --- a/tests/ErrorCodeTest.php +++ b/tests/ErrorCodeTest.php @@ -11,7 +11,7 @@ class ErrorCodeTest extends TestCase { #[DataProvider( "provideVariantEquals" )] public function testVariantEquals( ErrorCode $errorCode, int $errorCodeInt ): void { - $this->assertEquals( $errorCode->value, $errorCodeInt ); + $this->assertSame( $errorCode->value, $errorCodeInt ); } public static function provideVariantEquals(): array { diff --git a/tests/OptionTest.php b/tests/OptionTest.php index b76ceb6..c815e00 100644 --- a/tests/OptionTest.php +++ b/tests/OptionTest.php @@ -11,7 +11,7 @@ class OptionTest extends TestCase { #[DataProvider( "provideVariantEquals" )] public function testVariantEquals( Option $option, int $optionInt ): void { - $this->assertEquals( $option->value, $optionInt ); + $this->assertSame( $option->value, $optionInt ); } public static function provideVariantEquals(): array { diff --git a/tests/XmlParseResultTest.php b/tests/XmlParseResultTest.php index a2c09c9..e7ba6aa 100644 --- a/tests/XmlParseResultTest.php +++ b/tests/XmlParseResultTest.php @@ -11,7 +11,7 @@ class XmlParseResultTest extends TestCase { #[DataProvider( "provideParseResult" )] public function testIndex( XmlParseResult $result ): void { - $this->assertEquals( + $this->assertSame( [ 'PARA' => [ 0, 2 ], 'NOTE' => [ 1 ] ], $result->index, ); @@ -19,7 +19,7 @@ public function testIndex( XmlParseResult $result ): void { #[DataProvider( "provideParseResult" )] public function testValues( XmlParseResult $result ): void { - $this->assertEquals( + $this->assertSame( [ [ "tag" => "PARA",