Nelmio\Alice\FixtureBagTest::testIsIterable PHP Method

testIsIterable() public method

public testIsIterable ( )
    public function testIsIterable()
    {
        $fixture1 = new DummyFixture('foo');
        $fixture2 = new DummyFixture('bar');
        $bag = (new FixtureBag())->with($fixture1)->with($fixture2);
        $fixtures = [];
        foreach ($bag as $key => $value) {
            $fixtures[$key] = $value;
        }
        $this->assertSame($fixtures, $this->propRefl->getValue($bag));
    }