Skip to content

Commit

Permalink
a few more orders in test case corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Aug 16, 2013
1 parent 47e8e0c commit 6a14f37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/Cake/Test/Case/Utility/FileTest.php
Expand Up @@ -217,19 +217,19 @@ public function testOffset() {
$this->assertTrue(is_resource($this->File->handle));

$result = $this->File->offset();
$expecting = 0;
$this->assertSame($result, $expecting);
$expected = 0;
$this->assertSame($expected, $result);

$data = file_get_contents(__FILE__);
$success = $this->File->offset(5);
$expecting = substr($data, 5, 3);
$expected = substr($data, 5, 3);
$result = $this->File->read(3);
$this->assertTrue($success);
$this->assertEquals($expecting, $result);
$this->assertEquals($expected, $result);

$result = $this->File->offset();
$expecting = 5 + 3;
$this->assertSame($result, $expecting);
$expected = 5 + 3;
$this->assertSame($expected, $result);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Utility/HashTest.php
Expand Up @@ -2209,7 +2209,7 @@ public function testExpand() {
)
)
);
$this->assertEquals($result, $expected);
$this->assertEquals($expected, $result);

$data = array('a.b.100.a' => null, 'a.b.200.a' => null);
$expected = array(
Expand Down

0 comments on commit 6a14f37

Please sign in to comment.