spec/Phn/Compilation/CompilerSpec.php
function it_can_execute_functions_for_each_item_in_a_collection()
    {
        $collection = [1, 2, 3];

        $this
            ->each($collection, function($item) {
                $this->raw($item);
            })
            ->getSource()
            ->shouldMatch('/123/')
        ;
    }
function it_can_execute_functions_for_each_item_in_a_collection()
    {
        $collection = [1, 2, 3];

        $this
            ->each($collection, function($item) {
                $this->raw($item);
            })
            ->getSource()
            ->shouldMatch('/123/')
        ;
    }
function it_can_execute_functions_for_each_item_in_a_collection ( ) { $ collection = [ 1 , 2 , 3 ] ; $ this -> each ( $ collection , function ( $ item ) { $ this -> raw ( $ item ) ; } ) -> getSource ( ) -> shouldMatch ( '/123/' ) ; }
It can execute functions for each item in a collection.
It can execute functions for each item in a collection .