for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace tests;
/**
* Created by Vitaly Iegorov <[email protected]>
* on 04.08.14 at 16:42
*/
class CMSMainTest extends \PHPUnit_Framework_TestCase
{
public function testPushAndPop()
$stack = array();
$this->assertEquals(0, count($stack));
array_push($stack, 'foo');
$this->assertEquals('foo', $stack[count($stack)-1]);
$this->assertEquals(1, count($stack));
// Change to make push
$this->assertEquals('foo', array_pop($stack));
}