Get the command's full description
public get_longdesc ( ) : string | ||
return | string |
function test_complete() { $doc = new DocParser(<<<EOB /** * Rock and roll! * * ## OPTIONS * * --volume=<number> * : Sets the volume. * * ## EXAMPLES * * wp rock-on --volume=11 * * @synopsis [--volume=<number>] * @alias rock-on */ EOB ); $this->assertEquals('Rock and roll!', $doc->get_shortdesc()); $this->assertEquals('[--volume=<number>]', $doc->get_synopsis()); $this->assertEquals('rock-on', $doc->get_tag('alias')); $longdesc = <<<EOB ## OPTIONS --volume=<number> : Sets the volume. ## EXAMPLES wp rock-on --volume=11 EOB; $this->assertEquals($longdesc, $doc->get_longdesc()); }
function test_complete() { $doc = new DocParser(<<<EOB /** * Rock and roll! * * ## OPTIONS * * <genre>... * : Start with one or more genres. * * --volume=<number> * : Sets the volume. * * --artist=<artist-name> * : Limit to a specific artist. * * ## EXAMPLES * * wp rock-on --volume=11 * * @synopsis [--volume=<number>] * @alias rock-on */ EOB ); $this->assertEquals('Rock and roll!', $doc->get_shortdesc()); $this->assertEquals('[--volume=<number>]', $doc->get_synopsis()); $this->assertEquals('Start with one or more genres.', $doc->get_arg_desc('genre')); $this->assertEquals('Sets the volume.', $doc->get_param_desc('volume')); $this->assertEquals('rock-on', $doc->get_tag('alias')); $longdesc = <<<EOB ## OPTIONS <genre>... : Start with one or more genres. --volume=<number> : Sets the volume. --artist=<artist-name> : Limit to a specific artist. ## EXAMPLES wp rock-on --volume=11 EOB; $this->assertEquals($longdesc, $doc->get_longdesc()); }