Skip to content

Commit ffcb5e2

Browse files
author
Martin Brecht-Precht
committed
Added some more tests.
1 parent 4331729 commit ffcb5e2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/StackTest.php

+6
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ public function testStack()
3131
$this->assertEquals('Third item', $stack->get(2));
3232
$stack->delete(1);
3333
$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);
3440
$items = array();
3541
foreach ($stack as $stackItemKey => $stackItemValue) {
3642
$items[] = $stackItemValue;

0 commit comments

Comments
 (0)