Skip to content

Commit

Permalink
test get keys with empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil authored Jul 13, 2016
1 parent e05c3a8 commit 1b0901c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/PriorityListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ public function testGetKeys()
$list->getKeys()
);
}

public function testGetKeys_EmptyList()
{
$list = new PriorityList();

$this->assertEquals(
array(),
$list->getKeys()
);
}

public function testHas()
{
Expand Down Expand Up @@ -149,4 +159,4 @@ public function testToArray()
$this->fail('Actual list less than expected');
}
}
}
}

0 comments on commit 1b0901c

Please sign in to comment.