Skip to content

Commit

Permalink
Added test case for bug21849.phpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Moriyoshi Koizumi committed Jan 23, 2003
1 parent 459fb4f commit ad86154
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/lang/bug21849.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--TEST--
Bug #21849 (self::constant doesn't work as method's default parameter)
--FILE--
<?php
class foo {
const bar = "fubar\n";

function foo($arg = self::bar) {
echo $arg;
}
}

new foo();
?>
--EXPECT--
fubar

0 comments on commit ad86154

Please sign in to comment.