spec/Phn/Compilation/CompilerSpec.php
function it_can_execute_functions_conditionally_to_not_break_the_fluent_interface()
    {
        $this
            ->runIf(false, function() {
                $this->write('echo $message');
            })
            ->getSource()
            ->shouldReturn('<?php'.PHP_EOL)
        ;

        $this
            ->runIf(true, function() {
                $this->write('echo $message');
            })
            ->getSource()
            ->shouldMatch('/\Recho \$message/')
        ;
    }
function it_can_execute_functions_conditionally_to_not_break_the_fluent_interface()
    {
        $this
            ->runIf(false, function() {
                $this->write('echo $message');
            })
            ->getSource()
            ->shouldReturn('<?php'.PHP_EOL)
        ;

        $this
            ->runIf(true, function() {
                $this->write('echo $message');
            })
            ->getSource()
            ->shouldMatch('/\Recho \$message/')
        ;
    }
function it_can_execute_functions_conditionally_to_not_break_the_fluent_interface ( ) { $ this -> runIf ( false , function ( ) { $ this -> write ( 'echo $message' ) ; } ) -> getSource ( ) -> shouldReturn ( '<?php' . PHP_EOL ) ; $ this -> runIf ( true , function ( ) { $ this -> write ( 'echo $message' ) ; } ) -> getSource ( ) -> shouldMatch ( '/\Recho \$message/' ) ; }
It can execute functions conditionally to not break the fluent interface.
It can execute functions conditionally to not break the fluent interface .