252007
 

In the class PHPUnit_Framework_TestCase, line 352

        if ($this->name === NULL) {
            throw new PHPUnit_Framework_Error(
              ‘PHPUnit_Framework_TestCase::$name must not be NULL.’
            );
        }

If the var $this->name is NULL, it throws the exception PHPUnit_Framework_Error.
But, the PHPUnit_Framework_Error’s constructor is (line 77):

    public function __construct($message, $code, $file, $line, $trace)

如果捉虫能拿奖金,我可能已经是百万富翁了。闷,搞了半天,才发现原来是个 issue。再做回善事,发到 PHPUnit 的 mail list上吧。

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>