Anons79 Mini Shell

Directory : /home/proudlyafrican/public_html/vendor/phpunit/phpunit/tests/_files/
Upload File :
Current File : /home/proudlyafrican/public_html/vendor/phpunit/phpunit/tests/_files/StackTest.php

<?php
class StackTest extends PHPUnit_Framework_TestCase
{
    public function testPush()
    {
        $stack = [];
        $this->assertCount(0, $stack);

        array_push($stack, 'foo');
        $this->assertEquals('foo', $stack[count($stack)-1]);
        $this->assertCount(1, $stack);

        return $stack;
    }

    /**
     * @depends testPush
     */
    public function testPop(array $stack)
    {
        $this->assertEquals('foo', array_pop($stack));
        $this->assertCount(0, $stack);
    }
}

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]