public function ProjectUnitTest::testCoreVersion in Coder 8.3
Same name and namespace in other branches
- 8.3.x tests/DrupalPractice/ProjectDetection/ProjectUnitTest.php \DrupalPractice\Test\ProjectDetection\ProjectUnitTest::testCoreVersion()
Tests the extending classes Sniff class.
@dataProvider coreVersionProvider
Parameters
string $filename Name of the file that will be checked.:
string $coreVersion Expected core version for the file.:
Return value
void
File
- tests/
DrupalPractice/ ProjectDetection/ ProjectUnitTest.php, line 79
Class
- ProjectUnitTest
- Tests that project and version detection works.
Namespace
DrupalPractice\Test\ProjectDetectionCode
public function testCoreVersion($filename, $coreVersion) {
$this->phpcsFile
->expects($this
->any())
->method('getFilename')
->will($this
->returnValue($filename));
$this
->assertEquals(Project::getCoreVersion($this->phpcsFile), $coreVersion);
}