public function ProjectUnitTest::testInfoFileDetection in Coder 8.2
Tests the extending classes Sniff class.
File
- coder_sniffer/
DrupalPractice/ Test/ ProjectDetection/ ProjectUnitTest.php, line 34
Class
- ProjectUnitTest
- Tests that project and version detection works.
Namespace
DrupalPractice\ProjectDetectionCode
public function testInfoFileDetection() {
// @see https://www.drupal.org/project/coder/issues/2962880
$this
->markTestIncomplete('This test relies on code that has been removed in PHP_CodeSniffer 3.x.');
$this->phpcsFile
->expects($this
->any())
->method('getFilename')
->will($this
->returnValue(dirname(__FILE__) . '/modules/drupal6/test.php'));
$this
->assertEquals(Project::getInfoFile($this->phpcsFile), dirname(__FILE__) . '/modules/drupal6/testmodule.info');
}