Implementation of Eloquent tests

Basic Eloquent unit tests.

Lacks database operations, relationship testing and some magic method
calls.
This commit is contained in:
JoostK
2012-09-10 00:51:02 +02:00
parent 5f99c81035
commit 147e0ec656
2 changed files with 307 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
class Model extends Laravel\Database\Eloquent\Model {
public function set_setter($setter)
{
$this->set_attribute('setter', 'setter: '.$setter);
}
public function get_getter()
{
return 'getter: '.$this->get_attribute('getter');
}
}