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

Commit

Permalink
Fix PHPUnit 3.6 deprecation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
postalservice14 committed Aug 17, 2011
7 parents 10f278f + 252fdc8 + 023de10 + 85fcc7b + 5d8866f + 634bb62 + 453bb28 commit e9e4fec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/CookieJarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,11 @@ public function testGetMatchingCookiesAsStrings()
$this->assertEquals(8, count($jar->getAllCookies()), 'Cookie count is expected to be 8');

$cookies = $jar->getMatchingCookies('http://www.foo.com/path/file.txt', true, Http\CookieJar::COOKIE_STRING_ARRAY);
$this->assertType('array', $cookies, '$cookies is expected to be an array, but it is not');
$this->assertType('string', $cookies[0], '$cookies[0] is expected to be a string');
$this->assertInternalType('array', $cookies, '$cookies is expected to be an array, but it is not');
$this->assertInternalType('string', $cookies[0], '$cookies[0] is expected to be a string');

$cookies = $jar->getMatchingCookies('http://www.foo.com/path/file.txt', true, Http\CookieJar::COOKIE_STRING_CONCAT);
$this->assertType('string', $cookies, '$cookies is expected to be a string');
$this->assertInternalType('string', $cookies, '$cookies is expected to be a string');
}

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

$this->assertType('array', $cookies);
$this->assertInternalType('array', $cookies);
$this->assertEquals(2, count($cookies));
}

Expand Down
2 changes: 1 addition & 1 deletion test/ResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function testResponseCodeAsText()

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

Expand Down

0 comments on commit e9e4fec

Please # to comment.