PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Testing » PHPUnit » Bug #3756

GUI_Decorator araises a warning with TestCase constructor

Details

Submitted2005-03-09 09:57 UTC
Frompingoo at olive dot plala dot or dot jp
StatusBogus
PackagePHPUnit
PHP Version4.3.9
OSMac OS X 10.3.8
Roadmaps(Not assigned)

Comments

[2005-03-09 09:57 UTC] pingoo at olive dot plala dot or dot jp

Description:
------------
VERSION: 1.2.2

Hi,

When I use PHPUnit_GUI_SetupDecorator class to run
multiple test easily from the web, it arose a warning
and all tests go 'OK' although there are some tests to
fail. I resoved this problem by comment out the
constuctor of the super class.

I got the warning message below:

Warning: call_user_func(tests_hoge::): First argument is
expected to be a valid callback in /opt/php/lib/php/
PHPUnit/TestCase.php on line 164

Reproduce code:
---------------
http://potter.dcl.info.waseda.ac.jp/~pingoo/simple.tgz

Expected result:
----------------
Run the test from index.php. And you can see the warning
I mentioned. The class tests_hoge contains testFail()
function. It always fails, but with the constructor of
the super class, somewhat it goes 'OK'. It must be
'fail'