/** * Tests the extending classes Sniff class. * * @dataProvider coreVersionProvider */ public function testCoreVersion($filename, $core_version) { $this->phpcsFile->expects($this->any())->method('getFilename')->will($this->returnValue($filename)); $this->assertEquals(DrupalPractice_Project::getCoreVersion($this->phpcsFile), $core_version); }