From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- tests/simple_unit/TableGateway/MagicCallTest.php | 56 ++++++++++++------------ 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'tests/simple_unit/TableGateway/MagicCallTest.php') diff --git a/tests/simple_unit/TableGateway/MagicCallTest.php b/tests/simple_unit/TableGateway/MagicCallTest.php index c0df313d..8d42fba8 100644 --- a/tests/simple_unit/TableGateway/MagicCallTest.php +++ b/tests/simple_unit/TableGateway/MagicCallTest.php @@ -1,31 +1,31 @@ add_record1(); $this->add_record2(); - - $result = $this->getGateway()->findByUsername("record2"); - $this->assertEqual($result['username'], 'record2'); - } - - function test_combined_and_or() - { - $this->add_record1(); $this->add_record2(); - - $result = $this->getGateway()->findAllByUsername_OR_phone('Username', '45233')->readAll(); - $this->assertEqual(2, count($result)); - } - - function test_no_result() - { - $this->add_record1(); $this->add_record2(); - $result = $this->getGateway()->findAllByUsername_and_phone('Username', '45233')->readAll(); - - $this->assertEqual(0, count($result)); - } + +require_once(dirname(__FILE__).'/BaseGatewayTest.php'); + +class MagicCallTest extends BaseGatewayTest +{ + function test_magic_call() + { + $this->add_record1(); $this->add_record2(); + + $result = $this->getGateway()->findByUsername("record2"); + $this->assertEqual($result['username'], 'record2'); + } + + function test_combined_and_or() + { + $this->add_record1(); $this->add_record2(); + + $result = $this->getGateway()->findAllByUsername_OR_phone('Username', '45233')->readAll(); + $this->assertEqual(2, count($result)); + } + + function test_no_result() + { + $this->add_record1(); $this->add_record2(); + $result = $this->getGateway()->findAllByUsername_and_phone('Username', '45233')->readAll(); + + $this->assertEqual(0, count($result)); + } } ?> \ No newline at end of file -- cgit v1.2.3