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

testIterable() public method

public testIterable ( )
    public function testIterable()
    {
        $this->assertTrue($this->stack instanceof \Traversable, 'Stack should be traversable');
        $files = iterator_to_array($this->stack, false);
        $this->assertFiles($files, ['files://a.jpg', 'files://b.txt', 'files://c.txt', 'files://d.doc', 'files://e.mp3', 'theme://f.txt', 'theme://g.txt'], 'Iterating over Stack should yield all of the files on the stack');
    }