public function justEcho($value = null)
    {
        is_null($value) and $value = '';
        $fqn = ltrim($this->function_name->fullyQualifiedName(), '\\');

        $this->assertPrintable($value, 'provided to justEcho');

        \Patchwork\redefine($fqn, function () use ($value) {
            echo $value;
        });

        $this->assertRedefined($fqn);
    }
public function justEcho($value = null)
    {
        is_null($value) and $value = '';
        $fqn = ltrim($this->function_name->fullyQualifiedName(), '\\');

        $this->assertPrintable($value, 'provided to justEcho');

        \Patchwork\redefine($fqn, function () use ($value) {
            echo $value;
        });

        $this->assertRedefined($fqn);
    }
public function justEcho ( $ value = null ) { is_null ( $ value ) and $ value = '' ; $ fqn = ltrim ( $ this -> function_name -> fullyQualifiedName ( ) , '\\' ) ; $ this -> assertPrintable ( $ value , 'provided to justEcho' ) ; \ Patchwork \ redefine ( $ fqn , function ( ) use ( $ value ) { echo $ value ; } ) ; $ this -> assertRedefined ( $ fqn ) ; }
Redefine target function making it echo an arbitrary value.

@param mixed $value
@throws \Brain\Monkey\Expectation\Exception\InvalidArgumentForStub
Redefine target function making it echo an arbitrary value .