PHPMD\TextUI\CommandLineOptions::getReportFormat PHP Method

getReportFormat() public method

Returns the specified report format.
public getReportFormat ( ) : string
return string
    public function getReportFormat()
    {
        return $this->reportFormat;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * testAssignsFormatArgumentCorrectWhenCalledWithInputFile
  *
  * @return void
  * @since 1.1.0
  */
 public function testAssignsFormatArgumentCorrectWhenCalledWithInputFile()
 {
     $uri = self::createResourceUriForTest('inputfile.txt');
     $args = array('foo.php', 'text', 'design', '--inputfile', $uri);
     $opts = new CommandLineOptions($args);
     self::assertEquals('text', $opts->getReportFormat());
 }