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

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

        $this->compile($node)->getSource()->shouldMatch('/\Recho \$message/');
    }
function it_compiles_nodes ( $ node ) { $ node -> compile ( $ this ) -> will ( function ( $ args ) { $ args [ 0 ] -> write ( 'echo $message' ) ; } ) ; $ this -> compile ( $ node ) -> getSource ( ) -> shouldMatch ( '/\Recho \$message/' ) ; }
It compiles nodes.

@param \Phn\Compilation\NodeInterface $node
It compiles nodes .