Skip to content

Commit 0d4f5ca

Browse files
committed
Extract the functionality of getExample() into test case class
1 parent 1e113ab commit 0d4f5ca

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/PHPCtagsTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public function testExport()
4848
$testcase_expect = '';
4949
$testcase_format = $testcase_object->getFormat();
5050
$testcase_example = $testcase_object->getExample();
51-
$testcase_example = realpath(__DIR__ . '/examples/' . $testcase_example . '.example.php');
5251
$testcase_example_define = $testcase_object->getExampleDefine();
5352
$testcase_example_content = $testcase_object->getExampleContent();
5453
foreach ($testcase_example_define as $define) {

tests/PHPCtagsTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function getOptions()
3232

3333
public function getExample()
3434
{
35-
return $this->mExample;
35+
return realpath(__DIR__ . '/examples/' . $this->mExample . '.example.php');
3636
}
3737

3838
public function getExampleDefine()

0 commit comments

Comments
 (0)