Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CodeMessDetectorTest.php
Go to the documentation of this file.
1 <?php
7 
8 class CodeMessDetectorTest extends \PHPUnit\Framework\TestCase
9 {
10  public function testCanRun()
11  {
12  $messDetector = new \Magento\TestFramework\CodingStandard\Tool\CodeMessDetector(
13  'some/ruleset/file.xml',
14  'some/report/file.xml'
15  );
16 
17  $this->assertEquals(
18  class_exists(\PHPMD\TextUI\Command::class),
19  $messDetector->canRun()
20  );
21  }
22 }