Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kusmierz committed Jan 25, 2015
1 parent 9498616 commit 9f05ac2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/PriorityListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace ZendTest\Stdlib;

use Zend\Stdlib\ArrayUtils;
use Zend\Stdlib\PriorityList;
use PHPUnit_Framework_TestCase as TestCase;

Expand Down Expand Up @@ -251,7 +252,9 @@ public function testKey()
$this->list->insert('bar', 'foo', 0);
$this->list->insert('baz', 'f00', 2);

end($this->list);
$this->assertEquals('bar', key($this->list));
$list = ArrayUtils::iteratorToArray($this->list);

end($list);
$this->assertEquals('bar', key($list));
}
}

0 comments on commit 9f05ac2

Please sign in to comment.