Skip to content

Commit

Permalink
Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Jul 26, 2014
1 parent b78a1e8 commit c14ef9f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public function testToArray()
$this->assertTrue(is_array($array));
$this->assertEquals('foo', $array['name']);
$this->assertFalse(isset($array['password']));
$this->assertEquals($array, $model->jsonSerialize());
}

public function testToJson()
Expand Down Expand Up @@ -146,4 +147,14 @@ public function testArrayAccess()
$this->assertEquals($model->city, $model['city']);
}

public function testSerialize()
{
$model = new ModelStub;
$model->name = 'john';
$model->foo = 10;

$serialized = serialize($model);
$this->assertEquals($model, unserialize($serialized));
}

}

0 comments on commit c14ef9f

Please sign in to comment.