Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit e9e4fec

Browse files
Fix PHPUnit 3.6 deprecation errors
7 parents 10f278f + 252fdc8 + 023de10 + 85fcc7b + 5d8866f + 634bb62 + 453bb28 commit e9e4fec

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/CookieJarTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,11 @@ public function testGetMatchingCookiesAsStrings()
384384
$this->assertEquals(8, count($jar->getAllCookies()), 'Cookie count is expected to be 8');
385385

386386
$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');
389389

390390
$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');
392392
}
393393

394394
/**
@@ -457,7 +457,7 @@ public function testMatchPathWithTrailingSlash()
457457
foreach ($cookies as $cookie) $jar->addCookie($cookie);
458458
$cookies = $jar->getMatchingCookies('http://www.example.com/a/b/file.txt');
459459

460-
$this->assertType('array', $cookies);
460+
$this->assertInternalType('array', $cookies);
461461
$this->assertEquals(2, count($cookies));
462462
}
463463

test/ResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public function testResponseCodeAsText()
261261

262262
// Check we get an array if no code is passed
263263
$codes = Response::responseCodeAsText();
264-
$this->assertType('array', $codes);
264+
$this->assertInternalType('array', $codes);
265265
$this->assertEquals('OK', $codes[200]);
266266
}
267267

0 commit comments

Comments
 (0)