diff --git a/tests/Cookie/Jar/NormalizeCookieTest.php b/tests/Cookie/Jar/NormalizeCookieTest.php index f90afb9d8..6c9fb3a9e 100644 --- a/tests/Cookie/Jar/NormalizeCookieTest.php +++ b/tests/Cookie/Jar/NormalizeCookieTest.php @@ -16,7 +16,7 @@ final class NormalizeCookieTest extends TestCase { /** * Verify that cookie normalization works on both prebaked and unbaked cookies when not passing a key. * - * @dataProvider dataNormalization + * @dataProvider dataNormalizationWithoutKey * * @param mixed $cookie Cookie header value, possibly pre-parsed (object). * @@ -30,10 +30,25 @@ public function testNormalizationWithoutKey($cookie) { $this->assertSame(self::COOKIE_VALUE, (string) $result, 'Cookie value is not the expected value'); } + /** + * Data provider. + * + * @return array + */ + public static function dataNormalizationWithoutKey() { + $data = self::dataNormalizationWithKey(); + + foreach ($data as $set_name => $set_value) { + unset($data[$set_name]['expected_name']); + } + + return $data; + } + /** * Verify that cookie normalization works on both prebaked and unbaked cookies when passing a key. * - * @dataProvider dataNormalization + * @dataProvider dataNormalizationWithKey * * @param mixed $cookie Cookie header value, possibly pre-parsed (object). * @@ -55,7 +70,7 @@ public function testNormalizationWithKey($cookie, $expected_name) { * * @return array */ - public static function dataNormalization() { + public static function dataNormalizationWithKey() { return [ 'unbaked cookie (string)' => [ 'cookie' => self::COOKIE_VALUE,