summaryrefslogtreecommitdiff
path: root/tests/unit/Data/TableGateway/TestFindByPk.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-03-29 09:24:08 +0200
committerFabio Bas <ctrlaltca@gmail.com>2016-03-29 09:24:08 +0200
commit70e305a918fcf193009831d4e89aa8c386df3dc4 (patch)
tree8cc49f253f29636ddd623aa2c2b98835300604f0 /tests/unit/Data/TableGateway/TestFindByPk.php
parent55df8dac44f54a305e8bd7e50ef63f76725d2333 (diff)
Ported / fixed most old tests
Diffstat (limited to 'tests/unit/Data/TableGateway/TestFindByPk.php')
-rw-r--r--tests/unit/Data/TableGateway/TestFindByPk.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/Data/TableGateway/TestFindByPk.php b/tests/unit/Data/TableGateway/TestFindByPk.php
index f23fafa7..264231e6 100644
--- a/tests/unit/Data/TableGateway/TestFindByPk.php
+++ b/tests/unit/Data/TableGateway/TestFindByPk.php
@@ -1,11 +1,11 @@
<?php
-require_once(dirname(__FILE__).'/BaseGatewayTest.php');
+require_once(dirname(__FILE__).'/BaseGateway.php');
/**
* @package System.Data.TableGateway
*/
-class TestFindByPk extends BaseGatewayTest
+class TestFindByPk extends BaseGateway
{
function test_one_key()
{
@@ -22,7 +22,7 @@ class TestFindByPk extends BaseGatewayTest
$result['phone'] = intval($result['phone']);
$result['field9_numeric'] = floatval($result['field9_numeric']);
- $this->assertEqual($record1, $result);
+ $this->assertEquals($record1, $result);
}
function test_composite_key()
@@ -31,7 +31,7 @@ class TestFindByPk extends BaseGatewayTest
$result = $gateway->findByPk(1,1);
$expect = array("department_id" => 1, "section_id" => 1, "order" => 0);
- $this->assertEqual($expect, $result);
+ $this->assertEquals($expect, $result);
}
function test_find_all_keys()
@@ -44,7 +44,7 @@ class TestFindByPk extends BaseGatewayTest
array("department_id" => 1, "section_id" => 1, "order" => 0),
array("department_id" => 3, "section_id" => 13, "order" => 0));
- $this->assertEqual($expect, $result);
+ $this->assertEquals($expect, $result);
}
} \ No newline at end of file