You are here

public function ProjectUnitTest::coreVersionProvider in Coder 8.2

Data provider for testCoreVersion().

File

coder_sniffer/DrupalPractice/Test/ProjectDetection/ProjectUnitTest.php, line 85

Class

ProjectUnitTest
Tests that project and version detection works.

Namespace

DrupalPractice\ProjectDetection

Code

public function coreVersionProvider() {
  return array(
    array(
      dirname(__FILE__) . '/modules/drupal6/nested/test.php',
      '6.x',
    ),
    array(
      dirname(__FILE__) . '/modules/drupal7/test.php',
      '7.x',
    ),
    array(
      dirname(__FILE__) . '/modules/drupal8/test.php',
      '8.x',
    ),
  );
}