|
|
|
@ -13,11 +13,21 @@ class MetaTest extends \PHPUnit_Framework_TestCase
|
|
|
|
|
|
|
|
|
|
$model->write('name', 'John');
|
|
|
|
|
$model->write('age', 15);
|
|
|
|
|
$model->write('email', 'Johnny@appleseed.com');
|
|
|
|
|
$model->write('true', false);
|
|
|
|
|
|
|
|
|
|
$model->write([
|
|
|
|
|
'food' => 'taco',
|
|
|
|
|
'old' => 'spice',
|
|
|
|
|
'new' => 1935
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
$this->assertEquals('John', $model->read('name'));
|
|
|
|
|
$this->assertEquals(15, $model->read('age'));
|
|
|
|
|
$this->assertEquals('Johnny@appleseed.com', $model->read('email'));
|
|
|
|
|
$this->assertEquals(false, $model->read('true'));
|
|
|
|
|
|
|
|
|
|
$this->assertEquals('taco', $model->read('food'));
|
|
|
|
|
$this->assertEquals('spice', $model->read('old'));
|
|
|
|
|
$this->assertEquals(1935, $model->read('new'));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function testUuid ()
|
|
|
|
|