public function ProjectUnitTest::testInfoFileDetection in Coder 8.3
Same name and namespace in other branches
- 8.3.x tests/DrupalPractice/ProjectDetection/ProjectUnitTest.php \DrupalPractice\Test\ProjectDetection\ProjectUnitTest::testInfoFileDetection()
Tests the extending classes Sniff class.
Return value
void
File
- tests/
DrupalPractice/ ProjectDetection/ ProjectUnitTest.php, line 42
Class
- ProjectUnitTest
- Tests that project and version detection works.
Namespace
DrupalPractice\Test\ProjectDetectionCode
public function testInfoFileDetection() {
$this->phpcsFile
->expects($this
->any())
->method('getFilename')
->will($this
->returnValue(__DIR__ . '/drupal6/test.php'));
$this
->assertEquals(Project::getInfoFile($this->phpcsFile), __DIR__ . '/drupal6/testmodule.info');
}