public function generateClass(Suite $suite, $context_class)
    {
        $fqn       = $context_class;
        $namespace = '';
        $pos       = strrpos($fqn, '\\');

        if ($pos) {
            $context_class = substr($fqn, $pos + 1);
            $namespace     = sprintf('namespace %s;%s', substr($fqn, 0, $pos), PHP_EOL . PHP_EOL);
        }

        return strtr(
            static::$template,
            array(
                '{namespace}'  => $namespace,
                '{class_name}' => $context_class,
            )
        );
    }
public function generateClass(Suite $suite, $context_class)
    {
        $fqn       = $context_class;
        $namespace = '';
        $pos       = strrpos($fqn, '\\');

        if ($pos) {
            $context_class = substr($fqn, $pos + 1);
            $namespace     = sprintf('namespace %s;%s', substr($fqn, 0, $pos), PHP_EOL . PHP_EOL);
        }

        return strtr(
            static::$template,
            array(
                '{namespace}'  => $namespace,
                '{class_name}' => $context_class,
            )
        );
    }
public function generateClass ( Suite $ suite , $ context_class ) { $ fqn = $ context_class ; $ namespace = '' ; $ pos = strrpos ( $ fqn , '\\' ) ; if ( $ pos ) { $ context_class = substr ( $ fqn , $ pos + 1 ) ; $ namespace = sprintf ( 'namespace %s;%s' , substr ( $ fqn , 0 , $ pos ) , PHP_EOL . PHP_EOL ) ; } return strtr ( static :: $ template , array ( '{namespace}' => $ namespace , '{class_name}' => $ context_class , ) ) ; }
Generate context class code.

@param Suite  $suite
@param string $context_class

@return string The context class source code.
Generate context class code .