public function justReturn($return = null)
    {
        $fqn = ltrim($this->function_name->fullyQualifiedName(), '\\');

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

        $this->assertRedefined($fqn);
    }
public function justReturn($return = null)
    {
        $fqn = ltrim($this->function_name->fullyQualifiedName(), '\\');

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

        $this->assertRedefined($fqn);
    }
public function justReturn ( $ return = null ) { $ fqn = ltrim ( $ this -> function_name -> fullyQualifiedName ( ) , '\\' ) ; \ Patchwork \ redefine ( $ fqn , function ( ) use ( $ return ) { return $ return ; } ) ; $ this -> assertRedefined ( $ fqn ) ; }
Redefine target function making it return an arbitrary value.

@param mixed $return
Redefine target function making it return an arbitrary value .