NoneTest::testForeach()


Source

File: vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php

    public function testForeach()
    {
        $none = \PhpOption\None::create();

        $called = 0;
        foreach ($none as $value) {
            $called++;
        }

        $this->assertEquals(0, $called);
    }