@@ -384,11 +384,11 @@ public function testGetMatchingCookiesAsStrings()
384
384
$ this ->assertEquals (8 , count ($ jar ->getAllCookies ()), 'Cookie count is expected to be 8 ' );
385
385
386
386
$ cookies = $ jar ->getMatchingCookies ('http://www.foo.com/path/file.txt ' , true , Http \CookieJar::COOKIE_STRING_ARRAY );
387
- $ this ->assertType ('array ' , $ cookies , '$cookies is expected to be an array, but it is not ' );
388
- $ this ->assertType ('string ' , $ cookies [0 ], '$cookies[0] is expected to be a string ' );
387
+ $ this ->assertInternalType ('array ' , $ cookies , '$cookies is expected to be an array, but it is not ' );
388
+ $ this ->assertInternalType ('string ' , $ cookies [0 ], '$cookies[0] is expected to be a string ' );
389
389
390
390
$ cookies = $ jar ->getMatchingCookies ('http://www.foo.com/path/file.txt ' , true , Http \CookieJar::COOKIE_STRING_CONCAT );
391
- $ this ->assertType ('string ' , $ cookies , '$cookies is expected to be a string ' );
391
+ $ this ->assertInternalType ('string ' , $ cookies , '$cookies is expected to be a string ' );
392
392
}
393
393
394
394
/**
@@ -457,7 +457,7 @@ public function testMatchPathWithTrailingSlash()
457
457
foreach ($ cookies as $ cookie ) $ jar ->addCookie ($ cookie );
458
458
$ cookies = $ jar ->getMatchingCookies ('http://www.example.com/a/b/file.txt ' );
459
459
460
- $ this ->assertType ('array ' , $ cookies );
460
+ $ this ->assertInternalType ('array ' , $ cookies );
461
461
$ this ->assertEquals (2 , count ($ cookies ));
462
462
}
463
463
0 commit comments