Simple Test for Eclipse

1 view
Skip to first unread message

Jimboidaho

unread,
Sep 9, 2010, 12:41:40 PM9/9/10
to Professional PHP Developers
I am trying to get some unit testing working using the Simple Test
framework. The problem is I am getting tons of warnings about
"Assigning the return value of new by reference is deprecated". It
gets very difficult to figure out errors whit so much clutter. I hate
downgrading the PHP error reporting because my own errors may be
missed. Anyone know of a better unit test framework or if this one
is going to get updated?

Thanks.

Robert Gonzalez

unread,
Sep 9, 2010, 12:51:00 PM9/9/10
to professi...@googlegroups.com
According to Markus Baker, the developer of SimpleTest, the current SVN version is compatible with PHP5. Personally I gave up on it because I was tired of fighting with it so much just to get it to work.

--
This group is managed and maintained by the development staff at 360 PSG. An enterprise application development company utilizing open-source technologies for todays small-to-medium size businesses.

For information or project assistance please visit :
http://www.360psg.com

You received this message because you are subscribed to the Google Groups "Professional PHP Developers" group.
To post to this group, send email to Professi...@googlegroups.com
To unsubscribe from this group, send email to Professional-P...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Professional-PHP

Jimboidaho

unread,
Sep 9, 2010, 1:00:51 PM9/9/10
to Professional PHP Developers
with error_reporting(E_ALL) set, this is what I see in the browser.
Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\unit_tester.php on
line 74 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\unit_tester.php on
line 89 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\unit_tester.php on
line 238 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\unit_tester.php on
line 260 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\unit_tester.php on
line 266 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\unit_tester.php on
line 277 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\test_case.php on
line 110 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\test_case.php on
line 112 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\test_case.php on
line 466 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\test_case.php on
line 470 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\test_case.php on
line 529 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\test_case.php on
line 547 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\test_case.php on
line 594 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\expectation.php on
line 78 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes\simpletest.php on
line 317 Deprecated: Assigning the return value of new by reference is
deprecated in D:\phpProjects\workspace\test_classes
\default_reporter.php on line 114 Deprecated: Assigning the return
value of new by reference is deprecated in D:\phpProjects\workspace
\test_classes\default_reporter.php on line 119 Deprecated: Assigning
the return value of new by reference is deprecated in D:\phpProjects
\workspace\test_classes\default_reporter.php on line 122 Deprecated:
Assigning the return value of new by reference is deprecated in D:
\phpProjects\workspace\test_classes\default_reporter.php on line 127

On Sep 9, 10:51 am, Robert Gonzalez
<robert.anthony.gonza...@gmail.com> wrote:
> According to Markus Baker, the developer of SimpleTest, the current SVN
> version is compatible with PHP5. Personally I gave up on it because I was
> tired of fighting with it so much just to get it to work.
>

Robert Gonzalez

unread,
Sep 9, 2010, 1:05:19 PM9/9/10
to professi...@googlegroups.com
Right, because you are using PHP5 and SimpleTest is coded to PHP4 standards. You might be able to shut them up by removing E_DEPRECATED from your error reporting levels (unless that is 5.3+).
Reply all
Reply to author
Forward
0 new messages