lithium\console\command\create\Test::_methods PHP Method

_methods() protected method

Get the methods to test.
protected _methods ( string $request ) : string
$request string
return string
    protected function _methods($request)
    {
        $use = $this->_use($request);
        $path = Libraries::path($use);
        if (!file_exists($path)) {
            return "";
        }
        $methods = (array) Inspector::methods($use, 'extents');
        $testMethods = array();
        foreach (array_keys($methods) as $method) {
            $testMethods[] = "\tpublic function test" . ucwords($method) . "() {}";
        }
        return join("\n", $testMethods);
    }