mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Correct argument order for assert.
This commit is contained in:
parent
3095187952
commit
8e18e5a1c7
1 changed files with 6 additions and 6 deletions
|
@ -1219,7 +1219,7 @@ class CakeResponseTest extends CakeTestCase {
|
||||||
$result = $response->send();
|
$result = $response->send();
|
||||||
$output = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
$this->assertEquals("/* this is the test asset css file */\n", $output);
|
$this->assertEquals("/* this is the test asset css file */\n", $output);
|
||||||
$this->assertNotSame($result, false);
|
$this->assertNotSame(false, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1276,7 +1276,7 @@ class CakeResponseTest extends CakeTestCase {
|
||||||
$result = $response->send();
|
$result = $response->send();
|
||||||
$output = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
$this->assertEquals("some_key = some_value\nbool_key = 1\n", $output);
|
$this->assertEquals("some_key = some_value\nbool_key = 1\n", $output);
|
||||||
$this->assertNotSame($result, false);
|
$this->assertNotSame(false, $result);
|
||||||
if ($currentUserAgent !== null) {
|
if ($currentUserAgent !== null) {
|
||||||
$_SERVER['HTTP_USER_AGENT'] = $currentUserAgent;
|
$_SERVER['HTTP_USER_AGENT'] = $currentUserAgent;
|
||||||
}
|
}
|
||||||
|
@ -1340,7 +1340,7 @@ class CakeResponseTest extends CakeTestCase {
|
||||||
$result = $response->send();
|
$result = $response->send();
|
||||||
$output = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
$this->assertEquals("some_key = some_value\nbool_key = 1\n", $output);
|
$this->assertEquals("some_key = some_value\nbool_key = 1\n", $output);
|
||||||
$this->assertNotSame($result, false);
|
$this->assertNotSame(false, $result);
|
||||||
if ($currentUserAgent !== null) {
|
if ($currentUserAgent !== null) {
|
||||||
$_SERVER['HTTP_USER_AGENT'] = $currentUserAgent;
|
$_SERVER['HTTP_USER_AGENT'] = $currentUserAgent;
|
||||||
}
|
}
|
||||||
|
@ -1406,7 +1406,7 @@ class CakeResponseTest extends CakeTestCase {
|
||||||
$result = $response->send();
|
$result = $response->send();
|
||||||
$output = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
$this->assertEquals("some_key = some_value\nbool_key = 1\n", $output);
|
$this->assertEquals("some_key = some_value\nbool_key = 1\n", $output);
|
||||||
$this->assertNotSame($result, false);
|
$this->assertNotSame(false, $result);
|
||||||
if ($currentUserAgent !== null) {
|
if ($currentUserAgent !== null) {
|
||||||
$_SERVER['HTTP_USER_AGENT'] = $currentUserAgent;
|
$_SERVER['HTTP_USER_AGENT'] = $currentUserAgent;
|
||||||
}
|
}
|
||||||
|
@ -1676,7 +1676,7 @@ class CakeResponseTest extends CakeTestCase {
|
||||||
$output = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
$this->assertEquals(206, $response->statusCode());
|
$this->assertEquals(206, $response->statusCode());
|
||||||
$this->assertEquals("is the test asset ", $output);
|
$this->assertEquals("is the test asset ", $output);
|
||||||
$this->assertNotSame($result, false);
|
$this->assertNotSame(false, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1814,7 +1814,7 @@ class CakeResponseTest extends CakeTestCase {
|
||||||
$output = ob_get_clean();
|
$output = ob_get_clean();
|
||||||
$this->assertEquals(206, $response->statusCode());
|
$this->assertEquals(206, $response->statusCode());
|
||||||
$this->assertEquals("is the test asset ", $output);
|
$this->assertEquals("is the test asset ", $output);
|
||||||
$this->assertNotSame($result, false);
|
$this->assertNotSame(false, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue