spec/Phn/Compilation/CompilerSpec.php
function it_compiles_nodes_using_a_generic_solution($node)
    {
        $node->compile($this)->will(function ($args) {
            $args[0]->write('echo $message');
        });

        $this->repr($node)->getSource()->shouldMatch('/echo \$message/');
    }
function it_compiles_nodes_using_a_generic_solution($node)
    {
        $node->compile($this)->will(function ($args) {
            $args[0]->write('echo $message');
        });

        $this->repr($node)->getSource()->shouldMatch('/echo \$message/');
    }
function it_compiles_nodes_using_a_generic_solution ( $ node ) { $ node -> compile ( $ this ) -> will ( function ( $ args ) { $ args [ 0 ] -> write ( 'echo $message' ) ; } ) ; $ this -> repr ( $ node ) -> getSource ( ) -> shouldMatch ( '/echo \$message/' ) ; }
It compiles nodes using a generic solution.

@param \Phn\Compilation\NodeInterface $node
It compiles nodes using a generic solution .