PHPMD\TextUI\CommandLineOptions::getReportFormat PHP 메소드

getReportFormat() 공개 메소드

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

Usage Example

예제 #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());
 }