Navigation Menu

Skip to content

Commit

Permalink
Cover lines I missed before.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 10, 2016
1 parent 7062625 commit 82c96f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/TestCase/Database/Type/BoolTypeTest.php
Expand Up @@ -82,6 +82,7 @@ public function testToDatabseInvalidArray()
*/
public function testToPHP()
{
$this->assertNull($this->type->toPHP(null, $this->driver));
$this->assertTrue($this->type->toPHP(true, $this->driver));
$this->assertTrue($this->type->toPHP(1, $this->driver));
$this->assertTrue($this->type->toPHP('1', $this->driver));
Expand All @@ -103,6 +104,7 @@ public function testToPHP()
*/
public function testMarshal()
{
$this->assertNull($this->type->marshal(null));
$this->assertTrue($this->type->marshal(true));
$this->assertTrue($this->type->marshal(1));
$this->assertTrue($this->type->marshal('1'));
Expand Down
2 changes: 2 additions & 0 deletions tests/TestCase/Database/Type/IntegerTypeTest.php
Expand Up @@ -69,6 +69,8 @@ public function testToPHP()
*/
public function testToDatabase()
{
$this->asserNull($this->type->toDatabase(null, $this->driver));

$result = $this->type->toDatabase('some data', $this->driver);
$this->assertSame(0, $result);

Expand Down

0 comments on commit 82c96f6

Please sign in to comment.