Bolt\Tests\Stack\StackTest::testAddNewFileWithEmptyStack PHP Method

testAddNewFileWithEmptyStack() public method

    public function testAddNewFileWithEmptyStack()
    {
        $this->session->set('stack', []);
        $this->stack->add('a.jpg');
        $this->stack->add('b.txt', $removed);
        $this->assertNull($removed, 'Add methods removed parameter should be optional and null if no file was removed off stack');
    }