Skip to content
Permalink
Browse files

Make tests more strict.

  • Loading branch information...
dereuromark committed Sep 9, 2015
1 parent fe6b32f commit 73cc8d8349367f80eda97a791501339116b13bc4
Showing with 5 additions and 5 deletions.
  1. +5 −5 tests/TestCase/Network/RequestTest.php
@@ -1936,10 +1936,10 @@ public function testQuery()
]);
$result = $request->query('foo');
$this->assertEquals('bar', $result);
$this->assertSame('bar', $result);
$result = $request->query('zero');
$this->assertEquals('0', $result);
$this->assertSame('0', $result);
$result = $request->query('imaginary');
$this->assertNull($result);
@@ -1984,9 +1984,9 @@ public function testReadingParams()
]);
$this->assertFalse($request->param('not_set'));
$this->assertTrue($request->param('admin'));
$this->assertEquals(1, $request->param('truthy'));
$this->assertEquals('posts', $request->param('controller'));
$this->assertEquals('0', $request->param('zero'));
$this->assertSame(1, $request->param('truthy'));
$this->assertSame('posts', $request->param('controller'));
$this->assertSame('0', $request->param('zero'));
}
/**

0 comments on commit 73cc8d8

Please sign in to comment.
You can’t perform that action at this time.