Skip to content

Commit

Permalink
Correct argument order for assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Nov 11, 2014
1 parent 3095187 commit 8e18e5a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/Cake/Test/Case/Network/CakeResponseTest.php
Expand Up @@ -1219,7 +1219,7 @@ public function testFile() {
$result = $response->send();
$output = ob_get_clean();
$this->assertEquals("/* this is the test asset css file */\n", $output);
$this->assertNotSame($result, false);
$this->assertNotSame(false, $result);
}

/**
Expand Down Expand Up @@ -1276,7 +1276,7 @@ public function testFileWithUnknownFileTypeGeneric() {
$result = $response->send();
$output = ob_get_clean();
$this->assertEquals("some_key = some_value\nbool_key = 1\n", $output);
$this->assertNotSame($result, false);
$this->assertNotSame(false, $result);
if ($currentUserAgent !== null) {
$_SERVER['HTTP_USER_AGENT'] = $currentUserAgent;
}
Expand Down Expand Up @@ -1340,7 +1340,7 @@ public function testFileWithUnknownFileTypeOpera() {
$result = $response->send();
$output = ob_get_clean();
$this->assertEquals("some_key = some_value\nbool_key = 1\n", $output);
$this->assertNotSame($result, false);
$this->assertNotSame(false, $result);
if ($currentUserAgent !== null) {
$_SERVER['HTTP_USER_AGENT'] = $currentUserAgent;
}
Expand Down Expand Up @@ -1406,7 +1406,7 @@ public function testFileWithUnknownFileTypeIE() {
$result = $response->send();
$output = ob_get_clean();
$this->assertEquals("some_key = some_value\nbool_key = 1\n", $output);
$this->assertNotSame($result, false);
$this->assertNotSame(false, $result);
if ($currentUserAgent !== null) {
$_SERVER['HTTP_USER_AGENT'] = $currentUserAgent;
}
Expand Down Expand Up @@ -1676,7 +1676,7 @@ public function testFileRange() {
$output = ob_get_clean();
$this->assertEquals(206, $response->statusCode());
$this->assertEquals("is the test asset ", $output);
$this->assertNotSame($result, false);
$this->assertNotSame(false, $result);
}

/**
Expand Down Expand Up @@ -1814,7 +1814,7 @@ public function testFileRangeNoDownload() {
$output = ob_get_clean();
$this->assertEquals(206, $response->statusCode());
$this->assertEquals("is the test asset ", $output);
$this->assertNotSame($result, false);
$this->assertNotSame(false, $result);
}

/**
Expand Down

0 comments on commit 8e18e5a

Please sign in to comment.