We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4331729 commit ffcb5e2Copy full SHA for ffcb5e2
test/StackTest.php
@@ -31,6 +31,12 @@ public function testStack()
31
$this->assertEquals('Third item', $stack->get(2));
32
$stack->delete(1);
33
$this->assertEquals(3, $stack->size());
34
+ $stack->set('append', 10);
35
+ $this->assertEquals(4, $stack->size());
36
+ $stack->pop();
37
+ $this->assertEquals(3, $stack->size());
38
+ $notFound = $stack->get(100);
39
+ $this->assertNull($notFound);
40
$items = array();
41
foreach ($stack as $stackItemKey => $stackItemValue) {
42
$items[] = $stackItemValue;
0 commit comments