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