|
From: Alucard <alu...@gm...> - 2009-05-27 04:26:20
|
Hi all. I am new at SimpleTest and I found one problem. When I tried to perform the tutorial posted in SimpleTest, I got a lot of deprecated warnings as follow: *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line *74* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line *89* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line *238* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line *260* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line *266* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line *277* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * 110* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * 112* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * 466* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * 470* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * 529* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * 547* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * 594* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\expectation.php* on line *78* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\simpletest.php* on line * 317* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\default_reporter.php* on line *114* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\default_reporter.php* on line *119* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\default_reporter.php* on line *122* *Deprecated*: Assigning the return value of new by reference is deprecated in *C:\nginx\html\apps\milio\lib\System\simpletest\default_reporter.php* on line *127 *I am using PHP 5.3rc2 and nginx. Of course I can suppress the deprecated warnings but, are there any other solutions apart from doing this? Thank you in advance. Ellery* * |
|
From: Elijah I. <tm...@gm...> - 2009-05-27 15:59:39
|
SimpleTest is designed to work with php4, which does not have the same object model as php5. However, I see no reason for things like: $reporter = &new NoSkipsReporter($reporter); I would be much more apt to use/support SimpleTest if it's code was more standardized and extendable. @Ellery, I would recommend you taking a peak at PHPUnit, which is much more structured and documented (read: better) if you continue using SimpleTest I would recommend changing your error reporting to _only_ include errors/warnings. My 2 cents. -- Elijah On Wed, May 27, 2009 at 12:26 AM, Alucard <alu...@gm...> wrote: > Hi all. > > I am new at SimpleTest and I found one problem. > > When I tried to perform the tutorial posted in SimpleTest, I got a lot of > deprecated warnings as follow: > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line > *74* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line > *89* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line > *238* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line > *260* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line > *266* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\unit_tester.php* on line > *277* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * > 110* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * > 112* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * > 466* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * > 470* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * > 529* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * > 547* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\test_case.php* on line * > 594* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\expectation.php* on line > *78* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\simpletest.php* on line > * > 317* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\default_reporter.php* on > line *114* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\default_reporter.php* on > line *119* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\default_reporter.php* on > line *122* > > *Deprecated*: Assigning the return value of new by reference is deprecated > in *C:\nginx\html\apps\milio\lib\System\simpletest\default_reporter.php* on > line *127 > > > *I am using PHP 5.3rc2 and nginx. > > Of course I can suppress the deprecated warnings but, are there any other > solutions apart from doing this? > > Thank you in advance. > > > Ellery* > * > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. > Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
|
From: Marcus B. <ma...@wo...> - 2009-05-27 16:39:57
|
Hi... Alucard wrote: > I am new at SimpleTest and I found one problem. You need to use the newer 1.1 version. You can get the latest version as a source checkout from Sourceforge. As soon as the docs are bought up to date, this will become the official release. SimpleTest 1.1 supports versions PHP 5.0.3 to PHP 6. SimpleTEst 1.0.1 supports versions PHP 4.2.0 to 5.3 as long as you have E_STRICT off. E_STRICT is to deprecate PHP 4 compatibility, which of course we are still supporting in the older version. PHP 4 support will not be completely dropped. A 1.0.2 version is likely to allow an easy upgrade path to 1.1 for people upgrading their installations to PHP 5, but who don't want to break their tests. yours, Marcus |
|
From: Marcus B. <ma...@wo...> - 2009-05-27 16:42:51
|
Hi... Elijah Insua wrote: > SimpleTest is designed to work with php4, which does not have the same > @Ellery, I would recommend you taking a peak at PHPUnit, which is much more > structured and documented (read: better) Nice of you to post this on the SimpleTest forum :). But yes, SimpleTest has been neglected for the last couple of years due to children and an unwanted management workload. I hope for a string of updates RSN. > recommend changing your error reporting to _only_ include errors/warnings. Actually E_STRICT. E_NOTICE has worked since version 1.0.1. > -- Elijah yours, Marcus |
|
From: Alucard <alu...@gm...> - 2009-05-28 08:15:25
|
Thank you and I will checkout the 1.1 version for use. Ellery 2009/5/28 Marcus Baker <ma...@wo...> > Hi... > > Elijah Insua wrote: > > SimpleTest is designed to work with php4, which does not have the same > > @Ellery, I would recommend you taking a peak at PHPUnit, which is much > more > > structured and documented (read: better) > > Nice of you to post this on the SimpleTest forum :). > > But yes, SimpleTest has been neglected for the last couple of years > due to children and an unwanted management workload. I hope for a > string of updates RSN. > > > recommend changing your error reporting to _only_ include > errors/warnings. > > Actually E_STRICT. E_NOTICE has worked since version 1.0.1. > > > -- Elijah > > yours, Marcus > > > ------------------------------------------------------------------------------ > Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT > is a gathering of tech-side developers & brand creativity professionals. > Meet > the minds behind Google Creative Lab, Visual Complexity, Processing, & > iPhoneDevCamp as they present alongside digital heavyweights like Barbarian > Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |