Skip to content

Commit 1e113ab

Browse files
committed
Set default value for $mFormat and $mOptions properties
1 parent af65e9b commit 1e113ab

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

tests/PHPCtagsTestCase.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ abstract class PHPCtagsTestCase {
1010

1111
protected $mExampleDefine;
1212

13+
public function __construct()
14+
{
15+
$this->mFormat = "<name>\t<file>\t/^<line content>$/;\"\t<kind>\tline:<line number>\t<scope>\t<access>";
16+
$this->mOptions = array(
17+
'excmd' => 'pattern',
18+
'fields' => array('n','k','s','a'),
19+
'format' => 2,
20+
);
21+
}
22+
1323
public function getFormat()
1424
{
1525
return $this->mFormat;

tests/testcases/0001.testcase.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ class t_0001 extends PHPCtagsTestCase {
33

44
public function __construct()
55
{
6-
$this->mFormat = "<name>\t<file>\t/^<line content>$/;\"\t<kind>\tline:<line number>\t<scope>\t<access>";
7-
$this->mOptions = array(
8-
'excmd' => 'pattern',
9-
'fields' => array('n','k','s','a'),
10-
'format' => 2,
11-
);
6+
parent::__construct();
127
$this->mExample = '0001';
138
$this->mExampleDefine = array(
149
array(

0 commit comments

Comments
 (0)