From a3388622287e218beddfa14a47ed677d4307b36b Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 25 Mar 2016 17:55:51 +0100 Subject: Removed simpletest and moved all tests in the unit tree Tests are executed now, but a lot of them need fixing. --- .../Data/ActiveRecord/BaseActiveRecordTest.php | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php (limited to 'tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php') diff --git a/tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php b/tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php new file mode 100644 index 00000000..258fe70c --- /dev/null +++ b/tests/unit/Data/ActiveRecord/BaseActiveRecordTest.php @@ -0,0 +1,34 @@ +assertIdentical($obj1,$obj2); + } + + function test_finder_throw_exception_when_save() + { + $obj = TActiveRecord::finder('BaseRecordTest'); + try + { + $obj->save(); + $this->fail(); + } + catch(TActiveRecordException $e) + { + $this->pass(); + } + } +} -- cgit v1.2.3