public function ProjectUnitTest::testCoreVersion in Coder 8.2
Tests the extending classes Sniff class.
@dataProvider coreVersionProvider
File
- coder_sniffer/
DrupalPractice/ Test/ ProjectDetection/ ProjectUnitTest.php, line 69
Class
- ProjectUnitTest
- Tests that project and version detection works.
Namespace
DrupalPractice\ProjectDetectionCode
public function testCoreVersion($filename, $core_version) {
// @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($filename));
$this
->assertEquals(Project::getCoreVersion($this->phpcsFile), $core_version);
}