Skip to content

Commit 541588f

Browse files
committed
Lets see if this works for phongo...
1 parent e1207c2 commit 541588f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/CollectionTest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
class CollectionTest extends PHPUnit_Framework_TestCase
3+
{
4+
public function testPushAndPop()
5+
{
6+
$stack = array();
7+
$this->assertEquals(0, count($stack));
8+
9+
array_push($stack, 'foo');
10+
$this->assertEquals('foo', $stack[count($stack)-1]);
11+
$this->assertEquals(1, count($stack));
12+
13+
$this->assertEquals('foo', array_pop($stack));
14+
$this->assertEquals(0, count($stack));
15+
}
16+
}
17+

0 commit comments

Comments
 (0)