Skip to content

Commit

Permalink
Fix testcase tests/a53-class_protfunc.phpt
Browse files Browse the repository at this point in the history
  • Loading branch information
nanosonde committed May 22, 2018
1 parent 77684bf commit 686de77
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/a53-class_protfunc.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,17 @@ include(dirname(__FILE__)."/a50-class.phb");

$obj = new SubClass();
$obj->show(); /* a b c */
try{
$obj->hidden(15); /* error */
$obj->show();
}
catch(Error $e) {
echo "\nFatal error: ", $e->getMessage(), " on line ", $e->getLine(), "\n";
}
--EXPECTREGEX--
a=\[a\] b=\[b\] c=\[c\]

Fatal error: Call to protected method SubClass::hidden\(\) from context .* on line 6
Fatal error: Call to protected method SubClass::hidden\(\) from context .* on line 7
--CLEAN--
<?php
unlink(dirname(__FILE__).'/a53-class_protfunc.phb');
Expand Down

0 comments on commit 686de77

Please sign in to comment.