mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
a few more orders in test case corrected
This commit is contained in:
parent
47e8e0c57a
commit
6a14f37b74
2 changed files with 7 additions and 7 deletions
|
@ -217,19 +217,19 @@ class FileTest extends CakeTestCase {
|
||||||
$this->assertTrue(is_resource($this->File->handle));
|
$this->assertTrue(is_resource($this->File->handle));
|
||||||
|
|
||||||
$result = $this->File->offset();
|
$result = $this->File->offset();
|
||||||
$expecting = 0;
|
$expected = 0;
|
||||||
$this->assertSame($result, $expecting);
|
$this->assertSame($expected, $result);
|
||||||
|
|
||||||
$data = file_get_contents(__FILE__);
|
$data = file_get_contents(__FILE__);
|
||||||
$success = $this->File->offset(5);
|
$success = $this->File->offset(5);
|
||||||
$expecting = substr($data, 5, 3);
|
$expected = substr($data, 5, 3);
|
||||||
$result = $this->File->read(3);
|
$result = $this->File->read(3);
|
||||||
$this->assertTrue($success);
|
$this->assertTrue($success);
|
||||||
$this->assertEquals($expecting, $result);
|
$this->assertEquals($expected, $result);
|
||||||
|
|
||||||
$result = $this->File->offset();
|
$result = $this->File->offset();
|
||||||
$expecting = 5 + 3;
|
$expected = 5 + 3;
|
||||||
$this->assertSame($result, $expecting);
|
$this->assertSame($expected, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2209,7 +2209,7 @@ class HashTest extends CakeTestCase {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$this->assertEquals($result, $expected);
|
$this->assertEquals($expected, $result);
|
||||||
|
|
||||||
$data = array('a.b.100.a' => null, 'a.b.200.a' => null);
|
$data = array('a.b.100.a' => null, 'a.b.200.a' => null);
|
||||||
$expected = array(
|
$expected = array(
|
||||||
|
|
Loading…
Add table
Reference in a new issue