Skip to content

Commit 8eb5678

Browse files
author
Gianluca Arbezzano
committed
Merge pull request #1 from tomphp/feature/testing
Make existing tests to pass
2 parents bd83855 + 4d69c1e commit 8eb5678

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

tests/PHPCtagsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testExport($testcase)
7474
EOF;
7575

7676
try {
77-
$this->assertEquals(md5($testcase_expect), md5($testcase_result), $msg);
77+
$this->assertEquals($testcase_expect, $testcase_result, $msg);
7878
} catch (PHPUnit_Framework_ExpectationFailedException $e) {
7979
file_put_contents($expected_result, $testcase_expect);
8080
file_put_contents($acctural_result, $testcase_result);

tests/examples/0001.example.define.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ function e_0001_define()
5151
'scope'=>'',
5252
'access'=>'',
5353
),
54+
array(
55+
'name'=>'Trait_1',
56+
'kind'=>'t',
57+
'line'=> 25,
58+
'scope'=>'',
59+
'access'=>''
60+
),
5461
array(
5562
'name'=>'Interface_1',
5663
'kind'=>'i',

tests/examples/bugfix_0004.example.define.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22
function e_bugfix_0004_define()
33
{
44
return array(
5+
array(
6+
'name'=>'Bar',
7+
'kind'=>'n',
8+
'line'=> 2,
9+
'scope'=>'',
10+
'access'=>''
11+
),
512
array(
613
'name'=>'Foo',
714
'kind'=>'c',
815
'line'=>'4',
9-
'scope'=>'',
16+
'scope'=>'namespace:Bar',
1017
'access'=>'',
1118
),
1219
);

0 commit comments

Comments
 (0)