Skip to content

Commit

Permalink
empty row test
Browse files Browse the repository at this point in the history
  • Loading branch information
morris committed Jun 16, 2015
1 parent a53a260 commit 67fe83d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## master

- Fixed uninitialized Row properties, with test

## v0.3.0

- Travis CI
Expand Down
14 changes: 14 additions & 0 deletions tests/RowTest.php
Expand Up @@ -309,4 +309,18 @@ function testReadmeExample() {

}

function testEmptyRow() {

$db = self::$db;

$row = $db->createRow( 'dummy' );

$i = 0;

foreach ( $row as $prop ) ++$i;

$this->assertEquals( 0, $i );

}

}

0 comments on commit 67fe83d

Please sign in to comment.