You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(14) |
Oct
(22) |
Nov
(21) |
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(4) |
Feb
(26) |
Mar
(62) |
Apr
(60) |
May
(73) |
Jun
(41) |
Jul
(64) |
Aug
(39) |
Sep
(19) |
Oct
(18) |
Nov
(55) |
Dec
(24) |
2005 |
Jan
(35) |
Feb
(122) |
Mar
(130) |
Apr
(62) |
May
(57) |
Jun
(103) |
Jul
(71) |
Aug
(142) |
Sep
(67) |
Oct
(27) |
Nov
(49) |
Dec
(56) |
2006 |
Jan
(42) |
Feb
(65) |
Mar
(30) |
Apr
(43) |
May
(13) |
Jun
(25) |
Jul
(5) |
Aug
(14) |
Sep
(18) |
Oct
(55) |
Nov
(126) |
Dec
(82) |
2007 |
Jan
(83) |
Feb
(83) |
Mar
(173) |
Apr
(30) |
May
(64) |
Jun
(156) |
Jul
(50) |
Aug
(29) |
Sep
(25) |
Oct
(26) |
Nov
(51) |
Dec
(9) |
2008 |
Jan
(36) |
Feb
(71) |
Mar
(93) |
Apr
(123) |
May
(34) |
Jun
(14) |
Jul
(21) |
Aug
(26) |
Sep
(49) |
Oct
(38) |
Nov
(19) |
Dec
(46) |
2009 |
Jan
(18) |
Feb
(16) |
Mar
(46) |
Apr
(4) |
May
(18) |
Jun
(9) |
Jul
(11) |
Aug
(4) |
Sep
(31) |
Oct
(19) |
Nov
(4) |
Dec
(11) |
2010 |
Jan
(15) |
Feb
(9) |
Mar
|
Apr
(20) |
May
(5) |
Jun
(8) |
Jul
(2) |
Aug
(9) |
Sep
(6) |
Oct
(21) |
Nov
(20) |
Dec
(11) |
2011 |
Jan
(11) |
Feb
(5) |
Mar
(6) |
Apr
(1) |
May
(12) |
Jun
(4) |
Jul
(1) |
Aug
(3) |
Sep
(4) |
Oct
(3) |
Nov
(3) |
Dec
(5) |
2012 |
Jan
(28) |
Feb
(7) |
Mar
(3) |
Apr
|
May
(5) |
Jun
(6) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(4) |
Nov
(5) |
Dec
(4) |
2013 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Tim <da...@fa...> - 2012-06-22 01:44:41
|
Hi, So I have been having trouble getting a login working using the the browser module, this is only happening on one particular server which is RHEL6 w/ php 5.3.13. Basically the login fails, with the remote server rejecting the request. On closer inspection, the post parameters appear to be truncated. i.e there is a validation key that should be "/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==" but simpletest appears to be sending the following in the post instead ""/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA" Any thoughts on what is causing this? Thanks Tim |
From: Larry C. <LC...@rh...> - 2012-06-15 16:51:59
|
I found the answer. The problem was that in simpletest the cookies never disappear while in a real browser the cookies will 'fall off the list' once they have expired. Even expired cookies will continue to be sent to the server although their value is set to "deleted". My script seeing that the cookies had values kept trying to clear the cookies and reload the page before even allowing the login page to be displayed. It would have been very helpful if this caveat were part of the documentation. -----Original Message----- From: Larry Crouch [mailto:LC...@rh...] Sent: Thursday, June 14, 2012 5:01 PM To: 'sim...@li...' Subject: [Simpletest-support] Tests fail after clickSubmit Strange behavior around the clicksubmit method. Whatever the setMaximumRedirects is set to thats how many gets will be performed (these are seen in the apache access log). If I set the maximum redirects to 9 that's how many gets will be done. Every URL is the same as well. It's as if the clickSubmit is not parsing the redirect correctly and is instead fetching the same page over and over. Absolutely strange to me. What am I doing wrong? This is on a site that is already up and running. I've decided to start TDD and I figure the best place to start is with a site already working so I can understand How the testing works. Every test passes except the one I highlighted below This is running on a LAMP server (Ubuntu Precise) with simpletest 1.1.0. PHP is 5.3.10 Any help would be appreciated. <?php require_once('simpletest/autorun.php'); require_once('simpletest/web_tester.php'); SimpleTest::prefer(new TextReporter()); class CollectionsTest extends WebTestCase { function testGetLoginPage() { $intTenDays = 10 * 24 * 3600; $this->restart(); $this->ageCookies($intTenDays); // Make certain cookies expired $this->setMaximumRedirects(1); $this->get("http://nilesandbox/tools/login.php"); $this->assertResponse("200"); $this->assertTitle("Tools Login"); $this->assertText("Username"); $this->assertText("Password"); } function testGetLostPasswordPage() { $intTenDays = 10 * 24 * 3600; $this->restart(); $this->ageCookies($intTenDays); $this->setMaximumRedirects(1); $this->get("http://nilesandbox/tools/login.php"); $this->assertResponse("200"); $this->assertTitle("Tools Login"); $this->assertText("Username"); $this->assertText("Password"); $this->click("Forgot password? Click here"); $this->assertText("Type your username or email address"); } function testLoginFail() { $intTenDays = 10 * 24 * 3600; $this->restart(); $this->ageCookies($intTenDays); $this->setMaximumRedirects(3); $this->get("http://nilesandbox/tools/login.php"); $this->assertResponse("200"); $this->assertTitle("Tools Login"); $this->assertText("Username"); $this->assertText("Password"); $this->setField('username', 'larry'); $this->setField('password', 'badpass'); $this->clickSubmit("Submit"); $this->assertText("Username"); // <= Only test that fails } function testLoginGood() { $intTenDays = 10 * 24 * 3600; $this->restart(); $this->ageCookies($intTenDays); $this->setMaximumRedirects(3); $this->get("http://nilesandbox/tools/login.php"); $this->assertTitle("Tools Login"); $this->assertText("Username"); $this->assertText("Password"); $this->setField('username', 'larry'); $this->setField('password', 'goodpass'); $this->click('Submit'); } } Larry Crouch lc...@rh... RH Lending ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Simpletest-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpletest-support |
From: Larry C. <LC...@rh...> - 2012-06-14 22:21:47
|
Strange behavior around the clicksubmit method. Whatever the setMaximumRedirects is set to thats how many gets will be performed (these are seen in the apache access log). If I set the maximum redirects to 9 that's how many gets will be done. Every URL is the same as well. It's as if the clickSubmit is not parsing the redirect correctly and is instead fetching the same page over and over. Absolutely strange to me. What am I doing wrong? This is on a site that is already up and running. I've decided to start TDD and I figure the best place to start is with a site already working so I can understand How the testing works. Every test passes except the one I highlighted below This is running on a LAMP server (Ubuntu Precise) with simpletest 1.1.0. PHP is 5.3.10 Any help would be appreciated. <?php require_once('simpletest/autorun.php'); require_once('simpletest/web_tester.php'); SimpleTest::prefer(new TextReporter()); class CollectionsTest extends WebTestCase { function testGetLoginPage() { $intTenDays = 10 * 24 * 3600; $this->restart(); $this->ageCookies($intTenDays); // Make certain cookies expired $this->setMaximumRedirects(1); $this->get("http://nilesandbox/tools/login.php"); $this->assertResponse("200"); $this->assertTitle("Tools Login"); $this->assertText("Username"); $this->assertText("Password"); } function testGetLostPasswordPage() { $intTenDays = 10 * 24 * 3600; $this->restart(); $this->ageCookies($intTenDays); $this->setMaximumRedirects(1); $this->get("http://nilesandbox/tools/login.php"); $this->assertResponse("200"); $this->assertTitle("Tools Login"); $this->assertText("Username"); $this->assertText("Password"); $this->click("Forgot password? Click here"); $this->assertText("Type your username or email address"); } function testLoginFail() { $intTenDays = 10 * 24 * 3600; $this->restart(); $this->ageCookies($intTenDays); $this->setMaximumRedirects(3); $this->get("http://nilesandbox/tools/login.php"); $this->assertResponse("200"); $this->assertTitle("Tools Login"); $this->assertText("Username"); $this->assertText("Password"); $this->setField('username', 'larry'); $this->setField('password', 'badpass'); $this->clickSubmit("Submit"); $this->assertText("Username"); // <= Only test that fails } function testLoginGood() { $intTenDays = 10 * 24 * 3600; $this->restart(); $this->ageCookies($intTenDays); $this->setMaximumRedirects(3); $this->get("http://nilesandbox/tools/login.php"); $this->assertTitle("Tools Login"); $this->assertText("Username"); $this->assertText("Password"); $this->setField('username', 'larry'); $this->setField('password', 'goodpass'); $this->click('Submit'); } } Larry Crouch lc...@rh... RH Lending |
From: Manuel V. <man...@gm...> - 2012-06-10 17:15:03
|
Hi there, I try to update to latest simpletest version (1.0.1 -> 1.1) and I'm facing some issues with object comparison. Xdebug catch an infinite loop when comparing nested objects. Can you help me? I tested with both php5.3.10 and php 5.1.6 (the same code works with simpletest1.0.1) class Foo { function doFooStuff($bar) { } } class Bar { private $foo; public function __construct($foo) { $this->foo = $foo; } function doBarStuff() { $this->foo->doFooStuff($this); } } class FooBarTest extends UnitTestCase { public function testFooBar() { Mock::generate('Foo'); $foo = new MockFoo(); $bar = new Bar($foo); $foo->expectOnce('doFooStuff', array($bar)); $bar->doBarStuff(); } } PHP Fatal error: Maximum function nesting level of '100' reached, aborting! in /path/to/simpletest/compatibility.php on line 85 PHP Stack trace: PHP 1. simpletest_autorun() /path/to/simpletest/autorun.php:0 PHP 2. run_local_tests() /path/to/simpletest/autorun.php:30 PHP 3. TestSuite->run() /path/to/simpletest/autorun.php:54 PHP 4. SimpleTestCase->run() /path/to/simpletest/test_case.php:560 PHP 5. SimpleErrorTrappingInvoker->invoke() /path/to/simpletest/test_case.php:144 PHP 6. SimpleInvokerDecorator->invoke() /path/to/simpletest/errors.php:42 PHP 7. SimpleExceptionTrappingInvoker->invoke() /path/to/simpletest/invoker.php:126 PHP 8. SimpleInvokerDecorator->invoke() /path/to/simpletest/exceptions.php:43 PHP 9. SimpleInvoker->invoke() /path/to/simpletest/invoker.php:126 PHP 10. FooBarTest->testFooBar() /path/to/simpletest/invoker.php:68 PHP 11. Bar->doBarStuff() /path/foo.php:28 PHP 12. MockFoo->doFooStuff() /path/foo.php:17 PHP 13. SimpleMock->invoke() /path/to/simpletest/mock_objects.php(1314) : eval()'d code:187 PHP 14. SimpleMock->checkExpectations() /path/to/simpletest/mock_objects.php:1112 PHP 15. SimpleTestCase->assert() /path/to/simpletest/mock_objects.php:1161 PHP 16. ParametersExpectation->test() /path/to/simpletest/test_case.php:313 PHP 17. ParametersExpectation->testParameter() /path/to/simpletest/mock_objects.php:59 PHP 18. IdenticalExpectation->test() /path/to/simpletest/mock_objects.php:75 PHP 19. SimpleTestCompatibility::isIdentical() /path/to/simpletest/expectation.php:542 PHP 20. SimpleTestCompatibility::isIdenticalType() /path/to/simpletest/compatibility.php:40 PHP 21. SimpleTestCompatibility::isArrayOfIdenticalTypes() /path/to/simpletest/compatibility.php:66 PHP 22. SimpleTestCompatibility::isIdenticalType() /path/to/simpletest/compatibility.php:91 PHP 23. SimpleTestCompatibility::isArrayOfIdenticalTypes() /path/to/simpletest/compatibility.php:66 PHP 24. SimpleTestCompatibility::isIdenticalType() /path/to/simpletest/compatibility.php:91 PHP 25. SimpleTestCompatibility::isArrayOfIdenticalTypes() /path/to/simpletest/compatibility.php:66 PHP 26. SimpleTestCompatibility::isIdenticalType() /path/to/simpletest/compatibility.php:91 PHP 27. SimpleTestCompatibility::isArrayOfIdenticalTypes() /path/to/simpletest/compatibility.php:66 PHP 28. SimpleTestCompatibility::isIdenticalType() /path/to/simpletest/compatibility.php:91 PHP 29. SimpleTestCompatibility::isArrayOfIdenticalTypes() /path/to/simpletest/compatibility.php:69 PHP 30. SimpleTestCompatibility::isIdenticalType() /path/to/simpletest/compatibility.php:91 .... -- Twitter: @vaceletm |
From: Brian S. <br...@sc...> - 2012-05-27 13:50:24
|
Hi Noel, I re-read your message because I had a "there's something wrong" feeling when I replied to your message before. The expectations is all about _testing expectations_. My patch is about feeding data to the test. In the trivial case like the one you present "assertProduct" I guess that you may have a valid point. However, in the case where your setup-before-test code is non-trivial I think it's completely wrong to use expectations. F.ex., in my route test I have: $url = new url("http://www.mydomain.com/blogs/101/comments/2"); $method = "GET"; $registry = new registry; $router = new router($registry, $url, $method); $router.load(); $this->assertEqual($router.getController(), "comments"); $this->assertEqual($router.getAction(), "show"); (yes, I follow the Arrange-Act-Assert pattern). The $url and $method are the parameters which can change and thus influence the test. It should be noted - it's not clear from the example above, that the action of the url can be overridden - so, in general, one should test combinations of $url, $method and $action. $method tends to be one of "POST", "GET", "PUT" and "DELETE". $action typically is "index", "show", "create", "delete", "update". $url ... yes, something which contains all of the above (to some extent). Now, as I see it, I have four ways of testing this: 1) Have one huge test method with lots of duplicated code. Bad - I prefer to minimize the assert within one method. 2) Have one class with multiple test method. Each method tests one combination of $url and $method. This is not good either as one easily gets lost when determining which combinations have been tested. 3) Write expectations classes. However, that would just mean that a lot of the duplicated code is refactored into another class file - which may be hidden. So analyzing the test code isn't easily done. Also, as you write, I need to write test code to test the expectation ... 4) Have the individual parameters ($url, $method, $action) fed to one test method - the above test would be: protected data_Given_Url_When_Loading_The_Controller_And_Action_Is_As_Expected = array( array("http://www.mydomain.com/blogs/101/comments/2", "GET", "comments", "show"), array(...), array(...) ); public function test_Given_Url_When_Loading_The_Controller_And_Action_Is_As_Expected($url, $method, $controller, $action) { $registry = new registry; $router = new router($registry, $url, $method); $router.load(); $this->assertEqual($router.getController(), $controller); $this->assertEqual($router.getAction(), $action); } (Yes, I also like to follow the Given-When-Then pattern :-) It's easy to expand the above data-set when new combinations needs to be added. The test code is not hidden. And I don't need to maintain an expectation class. Anyway, thanks for your input on this one. I will keep the patch privately maintained and upload it to my personal webpage. Best regards Brian On Sat, May 26, 2012 at 6:53 PM, Noel Darlow <ma...@mc...> wrote: > Hi > > I like your desire to simplify the language. That's really what coding > is all about: trying to express ideas simply and clearly, or at least > least as simply and clearly as you can. > > One way to do this is to write a new Expectation class. This is a really > important thing to know how to do, and you'll find yourself writing a > lot of them. > > Working backwards, it would be nice if we could do this: > > class CanMultiply extends UnitTestCase { > > function test() { > $this->assertProduct(2, 5, 10); > $this->assertProduct(2, 6, 12); > $this->assertProduct(3, 5, 15; > # > # etc... > # > } > } > > We need a new method: assertProduct. > > If you look at the SimpleTest assertEqual method: > > function assertEqual($first, $second, $message = '%s') { > return $this->_test_case->assert( > new EqualExpectation($first), > $second, > $message); > } > > ...you'll get an idea how to plug an Expectation class into the > SimpleTest framework. > > So, assertProduct might look something like this: > > function assertProduct( > $factor_1, > $factor_2, > $expected_product, > $message = '%s') { > > return $this->_test_case->assert( > new MultplicationExpectation($factor_1, $factor_2), > $expected_product, > $message); > } > > ...and the MultplicationExpectation class (all Expectation classes > will follow this general pattern): > > class MultplicationExpectation extends SimpleExpectation { > > var $test_message = 'I multiplied [%d] with [%d] and got [%d] but > expected [%d] %s'; > > function __construct($factor_1, $factor_2, $overlaid_message = > '%s') { parent::__construct($overlaid_message); > $this->_factor_1 = $factor_1; > $this->_factor_2 = $factor_2; > } > function test($expected_product) { > return ($this->_factor_1 * $this->_factor_2 == > $expected_product); } > function testMessage($expected_product) { > if ($this->test($expected_product)) { > return 'hurrah!'; > } else { > return sprintf( > $this->test_message, > $this->dumper->describeDifference( > $this->_factor_1, > $this->_factor_2, > $this->_factor_1 * $this->_factor_2, > $expected_product)); > } > } > } > > Note that the second arg in the assert call is passed to "test" and > to "testMessage". > > The rest is all about messages. Sprintf the values into a message > string. An object $this->dumper is available to describe values in a > consistent way, if you need it. > > The Expectation class should itself be tested, of course. You must have > a very high level of confidence in test framework code because any bugs > here could cause a lot of problems. To a certain extent the code under > test tests the framework in the same way the framework tests the code > but I'd recommend doing some explicit Expectation testing as well. > > I've written some extensions to SimpleTest which allow a series of > classes to be run past the same set of tests, if that's more what > you're looking for. > See http://aperiplus.sourceforge.net/AperiTestCase.php and scroll down > to "Different Classes Same Tests". > > Note that I haven't been keeping up with php (I saw recently that > Sitepoint has dumped the old advanced php forum..!) so I can't > guarantee any of this will work on the latest version. I'm still on > 5.2. Feel free to take and adapt anything you like. > > > Noel > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support |
From: Brian S. <br...@sc...> - 2012-05-27 13:03:25
|
Hi Noel, Thanks for your explanation. I see your point and I will try to create my routeValidatorClass. However, in the simple case I still think my solution is better (less code ... ;-) I will try to use "expectations" ... Best regards, Brian On Sat, May 26, 2012 at 6:53 PM, Noel Darlow <ma...@mc...> wrote: > Hi > > I like your desire to simplify the language. That's really what coding > is all about: trying to express ideas simply and clearly, or at least > least as simply and clearly as you can. > > One way to do this is to write a new Expectation class. This is a really > important thing to know how to do, and you'll find yourself writing a > lot of them. > > Working backwards, it would be nice if we could do this: > > class CanMultiply extends UnitTestCase { > > function test() { > $this->assertProduct(2, 5, 10); > $this->assertProduct(2, 6, 12); > $this->assertProduct(3, 5, 15; > # > # etc... > # > } > } > > We need a new method: assertProduct. > > If you look at the SimpleTest assertEqual method: > > function assertEqual($first, $second, $message = '%s') { > return $this->_test_case->assert( > new EqualExpectation($first), > $second, > $message); > } > > ...you'll get an idea how to plug an Expectation class into the > SimpleTest framework. > > So, assertProduct might look something like this: > > function assertProduct( > $factor_1, > $factor_2, > $expected_product, > $message = '%s') { > > return $this->_test_case->assert( > new MultplicationExpectation($factor_1, $factor_2), > $expected_product, > $message); > } > > ...and the MultplicationExpectation class (all Expectation classes > will follow this general pattern): > > class MultplicationExpectation extends SimpleExpectation { > > var $test_message = 'I multiplied [%d] with [%d] and got [%d] but > expected [%d] %s'; > > function __construct($factor_1, $factor_2, $overlaid_message = > '%s') { parent::__construct($overlaid_message); > $this->_factor_1 = $factor_1; > $this->_factor_2 = $factor_2; > } > function test($expected_product) { > return ($this->_factor_1 * $this->_factor_2 == > $expected_product); } > function testMessage($expected_product) { > if ($this->test($expected_product)) { > return 'hurrah!'; > } else { > return sprintf( > $this->test_message, > $this->dumper->describeDifference( > $this->_factor_1, > $this->_factor_2, > $this->_factor_1 * $this->_factor_2, > $expected_product)); > } > } > } > > Note that the second arg in the assert call is passed to "test" and > to "testMessage". > > The rest is all about messages. Sprintf the values into a message > string. An object $this->dumper is available to describe values in a > consistent way, if you need it. > > The Expectation class should itself be tested, of course. You must have > a very high level of confidence in test framework code because any bugs > here could cause a lot of problems. To a certain extent the code under > test tests the framework in the same way the framework tests the code > but I'd recommend doing some explicit Expectation testing as well. > > I've written some extensions to SimpleTest which allow a series of > classes to be run past the same set of tests, if that's more what > you're looking for. > See http://aperiplus.sourceforge.net/AperiTestCase.php and scroll down > to "Different Classes Same Tests". > > Note that I haven't been keeping up with php (I saw recently that > Sitepoint has dumped the old advanced php forum..!) so I can't > guarantee any of this will work on the latest version. I'm still on > 5.2. Feel free to take and adapt anything you like. > > > Noel > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support |
From: Noel D. <ma...@mc...> - 2012-05-26 17:22:36
|
Hi I like your desire to simplify the language. That's really what coding is all about: trying to express ideas simply and clearly, or at least least as simply and clearly as you can. One way to do this is to write a new Expectation class. This is a really important thing to know how to do, and you'll find yourself writing a lot of them. Working backwards, it would be nice if we could do this: class CanMultiply extends UnitTestCase { function test() { $this->assertProduct(2, 5, 10); $this->assertProduct(2, 6, 12); $this->assertProduct(3, 5, 15; # # etc... # } } We need a new method: assertProduct. If you look at the SimpleTest assertEqual method: function assertEqual($first, $second, $message = '%s') { return $this->_test_case->assert( new EqualExpectation($first), $second, $message); } ...you'll get an idea how to plug an Expectation class into the SimpleTest framework. So, assertProduct might look something like this: function assertProduct( $factor_1, $factor_2, $expected_product, $message = '%s') { return $this->_test_case->assert( new MultplicationExpectation($factor_1, $factor_2), $expected_product, $message); } ...and the MultplicationExpectation class (all Expectation classes will follow this general pattern): class MultplicationExpectation extends SimpleExpectation { var $test_message = 'I multiplied [%d] with [%d] and got [%d] but expected [%d] %s'; function __construct($factor_1, $factor_2, $overlaid_message = '%s') { parent::__construct($overlaid_message); $this->_factor_1 = $factor_1; $this->_factor_2 = $factor_2; } function test($expected_product) { return ($this->_factor_1 * $this->_factor_2 == $expected_product); } function testMessage($expected_product) { if ($this->test($expected_product)) { return 'hurrah!'; } else { return sprintf( $this->test_message, $this->dumper->describeDifference( $this->_factor_1, $this->_factor_2, $this->_factor_1 * $this->_factor_2, $expected_product)); } } } Note that the second arg in the assert call is passed to "test" and to "testMessage". The rest is all about messages. Sprintf the values into a message string. An object $this->dumper is available to describe values in a consistent way, if you need it. The Expectation class should itself be tested, of course. You must have a very high level of confidence in test framework code because any bugs here could cause a lot of problems. To a certain extent the code under test tests the framework in the same way the framework tests the code but I'd recommend doing some explicit Expectation testing as well. I've written some extensions to SimpleTest which allow a series of classes to be run past the same set of tests, if that's more what you're looking for. See http://aperiplus.sourceforge.net/AperiTestCase.php and scroll down to "Different Classes Same Tests". Note that I haven't been keeping up with php (I saw recently that Sitepoint has dumped the old advanced php forum..!) so I can't guarantee any of this will work on the latest version. I'm still on 5.2. Feel free to take and adapt anything you like. Noel |
From: Noel D. <ma...@mc...> - 2012-05-26 17:07:54
|
Hi I like your desire to simplify the language. That's really what coding is all about: trying to express ideas simply and clearly, or at least least as simply and clearly as you can. One way to do this is to write a new Expectation class. This is a really important thing to know how to do, and you'll find yourself writing a lot of them. Working backwards, it would be nice if we could do this: class CanMultiply extends UnitTestCase { function test() { $this->assertProduct(2, 5, 10); $this->assertProduct(2, 6, 12); $this->assertProduct(3, 5, 15; # # etc... # } } We need a new method: assertProduct. If you look at the SimpleTest assertEqual method: function assertEqual($first, $second, $message = '%s') { return $this->_test_case->assert( new EqualExpectation($first), $second, $message); } ...you'll get an idea how to plug an Expectation class into the SimpleTest framework. So, assertProduct might look something like this: function assertProduct( $factor_1, $factor_2, $expected_product, $message = '%s') { return $this->_test_case->assert( new MultplicationExpectation($factor_1, $factor_2), $expected_product, $message); } ...and the MultplicationExpectation class (all Expectation classes will follow this general pattern): class MultplicationExpectation extends SimpleExpectation { var $test_message = 'I multiplied [%d] with [%d] and got [%d] but expected [%d] %s'; function __construct($factor_1, $factor_2, $overlaid_message = '%s') { parent::__construct($overlaid_message); $this->_factor_1 = $factor_1; $this->_factor_2 = $factor_2; } function test($expected_product) { return ($this->_factor_1 * $this->_factor_2 == $expected_product); } function testMessage($expected_product) { if ($this->test($expected_product)) { return 'hurrah!'; } else { return sprintf( $this->test_message, $this->dumper->describeDifference( $this->_factor_1, $this->_factor_2, $this->_factor_1 * $this->_factor_2, $expected_product)); } } } Note that the second arg in the assert call is passed to "test" and to "testMessage". The rest is all about messages. Sprintf the values into a message string. An object $this->dumper is available to describe values in a consistent way, if you need it. The Expectation class should itself be tested, of course. You must have a very high level of confidence in test framework code because any bugs here could cause a lot of problems. To a certain extent the code under test tests the framework in the same way the framework tests the code but I'd recommend doing some explicit Expectation testing as well. I've written some extensions to SimpleTest which allow a series of classes to be run past the same set of tests, if that's more what you're looking for. See http://aperiplus.sourceforge.net/AperiTestCase.php and scroll down to "Different Classes Same Tests". Note that I haven't been keeping up with php (I saw recently that Sitepoint has dumped the old advanced php forum..!) so I can't guarantee any of this will work on the latest version. I'm still on 5.2. Feel free to take and adapt anything you like. Noel |
From: Brian S. <br...@sc...> - 2012-05-26 09:35:18
|
Hi, Thanks for a cool PHP testing framework! I am an absolutely beginner into SimpleTest - so please excuse if the attached patch has already been solved otherwise ... I am in the need of something like xUnits PropertyData for my tests (see http://blog.benhall.me.uk/2008/01/introduction-to-xunitnet-extensions.html). I haven't found it in the current version of SimpleTest - so I hacked together the functionality. Using the patch, something like the following is possibly: class test extends UnitTestCase { protected $data_My_Test_Case = array(array(1, 2, 3), array(2, 3, 4)); function test_My_Test_Case($a, $b, $c) { echo "test_My_Test_Case output: " . $a . ", " . $b . ", " . $c . "\n"; $boolean = true; $this->assertTrue($boolean); } protected $data_My_Single_Value_Test_Case = array('a', 'b', 'c', 'd', 'e'); function test_My_Single_Value_Test_Case($a) { echo "test_My_Single_Value_Test_Case output: " . $a . "\n"; $boolean = true; $this->assertTrue($boolean); } } The above class defines two tests. The first test (test_My_Test_Case) is called two times, like: test_My_Test_Case(1, 2, 3); test_My_Test_Case(2, 3, 4); The second test (test_My_Single_Value_Test_Case) is called 5 times: test_My_Single_Value_Test_Case('a'); test_My_Single_Value_Test_Case('b'); test_My_Single_Value_Test_Case('c'); test_My_Single_Value_Test_Case('d'); test_My_Single_Value_Test_Case('e'); For this to work you need to define 'data//Test case name//' as an array of arrays. The 'data//Test case name//' must be declared as protected or public. If your test case is My_Test, your method will be testMy_Test and the "data feeder" will be dataMy_Test. If your test method only takes one argument the data_feeder need only be declared as one array (second test above). So what is this all good for? Simple example - you need to test if multiplication works ... old way: class test extends UnitTestCase { function test_Given_Two_And_Two_When_Multiplying_Then_Result_Is_Four() { $this->assertEqual(2 * 2, 4); } function test_Given_Three_And_Two_When_Multiplying_Then_Result_Is_Six() { $this->assertEqual(3 * 2, 6); } function test_Given_Four_And_Two_When_Multiplying_Then_Result_Is_Eight() { $this->assertEqual(4 * 2, 4); } } ... new way: public test extends UnitTestCase { protected $data_Given_Two_Numbers_When_Multiplying_Then_The_Result_Is_As_Expected = array( array(4, 2, 2), array(6, 3, 2), array(8, 4, 2), ); function test_Given_Two_Numbers_When_Multiplying_Then_The_Result_Is_As_Expected($expected, $n1, $n2) { $this->assertEqual($n1 * $n2, $expected); } } This is useful when you, like me, have a MVC framework where you need to test a gazillion combinations of routes ... :-) The patch is made against the latest version of SimpleTest (v1.1.0). To apply: tar xzf simpletest_1.1.0.tar.gz gunzip simpletest.patch.gz cd simpletest patch -p1 < ../simpletest.patch Best regards, Brian |
From: Squishy S. <sp...@ro...> - 2012-03-21 22:56:03
|
<p>Learn a Secret Loophole that Will Have You Making Serious Bucks Online<br><a href="http://tecnologiademateriais.com.br/lastnews/52GaryMurray/">http://tecnologiademateriais.com.br/lastnews/52GaryMurray/</a></p> |
From: Squishy S. <sp...@ro...> - 2012-03-19 23:37:54
|
<p>Making Real Money Online has never been so easy!<br><a href="http://users5.nofeehost.com/fysaroqoj/mobyhyso.html">http://users5.nofeehost.com/fysaroqoj/mobyhyso.html</a></p> |
From: Loren C. <lor...@gm...> - 2012-02-20 19:04:36
|
Aha, so that is how things are done. I suppose I should have mentioned I'm a total php newb. Thank you, Loren On Sat, Feb 18, 2012 at 8:12 PM, Noel Darlow <ma...@mc...> wrote: > Hi > > > So, my dev box is a bit sluggish and I've got some tests that are > > bumping up against the 15 sec DEFAULT_CONNECTION_TIMEOUT in > > user_agent.php. I see a big trail of setConnectionTimeout() from > > WebTestCase to SimpleUserAgent, but I can't seem to figure out how to > > invoke it from my base test class. When I call it from the > > constructor I get: > > > > > > Fatal error: Call to a member function setConnectionTimeout() on a > > non-object in > > > /home/lcole/workspace/ricochetserver/rl/vendors/simpletest/web_tester.php > > > > > > Where is the best place to make this call? > > I just realised there is this in user_agent.php: > > if (! defined('DEFAULT_CONNECTION_TIMEOUT')) { > define('DEFAULT_CONNECTION_TIMEOUT', 15); > } > > So all you need to do is define the constant in a config file, and > include that at the start of your script. > > > Noel > > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
From: Noel D. <ma...@mc...> - 2012-02-19 02:27:29
|
Hi > So, my dev box is a bit sluggish and I've got some tests that are > bumping up against the 15 sec DEFAULT_CONNECTION_TIMEOUT in > user_agent.php. I see a big trail of setConnectionTimeout() from > WebTestCase to SimpleUserAgent, but I can't seem to figure out how to > invoke it from my base test class. When I call it from the > constructor I get: > > > Fatal error: Call to a member function setConnectionTimeout() on a > non-object in > /home/lcole/workspace/ricochetserver/rl/vendors/simpletest/web_tester.php > > > Where is the best place to make this call? I just realised there is this in user_agent.php: if (! defined('DEFAULT_CONNECTION_TIMEOUT')) { define('DEFAULT_CONNECTION_TIMEOUT', 15); } So all you need to do is define the constant in a config file, and include that at the start of your script. Noel |
From: Noel D. <ma...@mc...> - 2012-02-19 02:22:28
|
Hi > So, my dev box is a bit sluggish and I've got some tests that are > bumping up against the 15 sec DEFAULT_CONNECTION_TIMEOUT in > user_agent.php. I see a big trail of setConnectionTimeout() from > WebTestCase to SimpleUserAgent, but I can't seem to figure out how to > invoke it from my base test class. When I call it from the > constructor I get: > > > Fatal error: Call to a member function setConnectionTimeout() on a > non-object in > /home/lcole/workspace/ricochetserver/rl/vendors/simpletest/web_tester.php > > > Where is the best place to make this call? It's been a while since I used the standard version of SimpleTest but do you get the same error if you setConnectionTimeout(...) in setUp()? Noel |
From: Loren C. <lor...@gm...> - 2012-02-17 22:27:08
|
So, my dev box is a bit sluggish and I've got some tests that are bumping up against the 15 sec DEFAULT_CONNECTION_TIMEOUT in user_agent.php. I see a big trail of setConnectionTimeout() from WebTestCase to SimpleUserAgent, but I can't seem to figure out how to invoke it from my base test class. When I call it from the constructor I get: Fatal error: Call to a member function setConnectionTimeout() on a non-object in /home/lcole/workspace/ricochetserver/rl/vendors/simpletest/web_tester.php Where is the best place to make this call? Thanks, Loren |
From: Squishy S. <sp...@ro...> - 2012-02-10 10:20:22
|
<p>Hey...<br>I was never spoiled as a child now I can afford my lifestyle I had nowhere to turn!<br><a href="http://dr23.cba.pl/currentevents/82DeanWhite/">http://dr23.cba.pl/currentevents/82DeanWhite/</a> now the void in my life has been filled<br>just thought id share the wealth!<br><br>talk to you soon.</p> |
From: Manuel V. <man...@gm...> - 2012-01-23 12:34:58
|
Thx! On Mon, Jan 23, 2012 at 11:40 AM, Perrick Penet-Avez <pe...@no...>wrote: > You can find it here : > > http://simpletest.org/en/changelog.html > > Perrick > > > > On 23/01/12 11:36, Manuel Vacelet wrote: > > Thanks Perrick for this long-waited release. > > > > I failed to find the changelog, is there any available ? > > > > On Mon, Jan 23, 2012 at 10:26 AM, Perrick Penet-Avez > > <pe...@no...>wrote: > > > >> Hello all, > >> > >> The latest SimpleTest is finally out : you can grab it on the > >> Sourceforge website... > >> > >> https://sourceforge.net/projects/simpletest/files/latest/download > >> > >> If you find any defects, please let me know (it was my first release > >> after all ;-) > >> > >> Enjoy, > >> Perrick Penet-Avez > >> > >> PS : and a big thank you to Edward Z. Yang, Jerome& Manuel Vacelet for > >> their help in the process... > >> > >> > >> > >> > >> > >> > ------------------------------------------------------------------------------ > >> Try before you buy = See our experts in action! > >> The most comprehensive online learning library for Microsoft developers > >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >> Metro Style Apps, more. Free future releases when you subscribe now! > >> http://p.sf.net/sfu/learndevnow-dev2 > >> _______________________________________________ > >> Simpletest-support mailing list > >> Sim...@li... > >> https://lists.sourceforge.net/lists/listinfo/simpletest-support > >> > > > > > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > -- Twitter: @vaceletm |
From: Perrick Penet-A. <pe...@no...> - 2012-01-23 10:48:48
|
You can find it here : http://simpletest.org/en/changelog.html Perrick On 23/01/12 11:36, Manuel Vacelet wrote: > Thanks Perrick for this long-waited release. > > I failed to find the changelog, is there any available ? > > On Mon, Jan 23, 2012 at 10:26 AM, Perrick Penet-Avez > <pe...@no...>wrote: > >> Hello all, >> >> The latest SimpleTest is finally out : you can grab it on the >> Sourceforge website... >> >> https://sourceforge.net/projects/simpletest/files/latest/download >> >> If you find any defects, please let me know (it was my first release >> after all ;-) >> >> Enjoy, >> Perrick Penet-Avez >> >> PS : and a big thank you to Edward Z. Yang, Jerome& Manuel Vacelet for >> their help in the process... >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Try before you buy = See our experts in action! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-dev2 >> _______________________________________________ >> Simpletest-support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpletest-support >> > > > |
From: Manuel V. <man...@gm...> - 2012-01-23 10:36:10
|
Thanks Perrick for this long-waited release. I failed to find the changelog, is there any available ? On Mon, Jan 23, 2012 at 10:26 AM, Perrick Penet-Avez <pe...@no...>wrote: > Hello all, > > The latest SimpleTest is finally out : you can grab it on the > Sourceforge website... > > https://sourceforge.net/projects/simpletest/files/latest/download > > If you find any defects, please let me know (it was my first release > after all ;-) > > Enjoy, > Perrick Penet-Avez > > PS : and a big thank you to Edward Z. Yang, Jerome & Manuel Vacelet for > their help in the process... > > > > > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > -- Twitter: @vaceletm |
From: Perrick Penet-A. <pe...@no...> - 2012-01-23 10:33:52
|
Thanks for all these feedbacks... The latest 1.1.0 version is on its way now ! Yours, Perrick On 21/01/12 03:35, Edward Z. Yang wrote: > These tests failed due to intermittent network failure: PHP 5.2.12, 5.2.6 > > Here are the rest. > > ezyang@javelin:~/Dev/simpletest$ for i in `ls ~/Dev/phpv/versions`; do echo "PHP $i"; phpv $i test/all_tests.php; done > PHP 5.0.4 > all_tests.php > Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] > Skip: Reflection with type hints only tested for PHP 5.1.0 and above at [/home/ezyang/Dev/simpletest/test/reflection_php5_test.php line 229] > Skip: __isset and __unset overloading not tested unless PHP 5.1+ at [/home/ezyang/Dev/simpletest/test/mock_objects_test.php line 652] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 144/153, Passes: 2671, Failures: 0, Exceptions: 0 > PHP 5.0.5 > all_tests.php > Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] > Skip: Reflection with type hints only tested for PHP 5.1.0 and above at [/home/ezyang/Dev/simpletest/test/reflection_php5_test.php line 229] > Skip: __isset and __unset overloading not tested unless PHP 5.1+ at [/home/ezyang/Dev/simpletest/test/mock_objects_test.php line 652] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 144/153, Passes: 2671, Failures: 0, Exceptions: 0 > PHP 5.1.0 > all_tests.php > Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 > PHP 5.1.1 > all_tests.php > Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 > PHP 5.1.2 > all_tests.php > Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 > PHP 5.1.3 > all_tests.php > Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 > PHP 5.1.4 > all_tests.php > Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 > PHP 5.1.5 > all_tests.php > Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 > PHP 5.1.6 > all_tests.php > Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 > PHP 5.2.0 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.2.1 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.2.10 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.2.10RC1 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.2.11 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.2.14 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.2.15RC1 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.2.2 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.2.3 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.3.4 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.3.4RC1 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.3.5 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.3.6 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.3.7 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.3.8 > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > PHP 5.3-dev > all_tests.php > Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] > Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > > > The test suite segfaults on all versions of PHP 5.4 I tried. Since that RC > is just around the corner, it's probably worth investigating further. > > Edward > > Excerpts from Perrick Penet-Avez's message of Fri Jan 20 03:18:55 -0500 2012: >> Hi Edward, >> >>> I was recently using SimpleTest on some old versions of PHP, >>> and some of the aggressive reflection used to check object identity/non-identity >>> caused certain versions of PHP to segfault. >>> >>> Tomorrow I can run the suite on every version of PHP from 5.0.5 to the >>> latest and let you know the results. >> >> That would be really helpfull. I did manage to get some old PHP versions >> on some old machine we have in the office, but I haven't found a >> segfault yet... >> >> Thanks again, >> Perrick >> > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
From: Perrick Penet-A. <pe...@no...> - 2012-01-23 10:03:52
|
Hello all, The latest SimpleTest is finally out : you can grab it on the Sourceforge website... https://sourceforge.net/projects/simpletest/files/latest/download If you find any defects, please let me know (it was my first release after all ;-) Enjoy, Perrick Penet-Avez PS : and a big thank you to Edward Z. Yang, Jerome & Manuel Vacelet for their help in the process... |
From: Squishy S. <sp...@ro...> - 2012-01-22 15:58:12
|
<p>Hi Friend.<br><br>I was never spoiled as a child without this my life would be miserable it was important for me to stay positive!<br><a href="http://vangeerkemusic.com/currentevents/36MatthewFerguson/">http://vangeerkemusic.com/currentevents/36MatthewFerguson/</a> it didnt even take that much effort<br>no pressure just check it out...<br>see you later</p> |
From: Edward Z. Y. <ez...@MI...> - 2012-01-21 02:35:47
|
These tests failed due to intermittent network failure: PHP 5.2.12, 5.2.6 Here are the rest. ezyang@javelin:~/Dev/simpletest$ for i in `ls ~/Dev/phpv/versions`; do echo "PHP $i"; phpv $i test/all_tests.php; done PHP 5.0.4 all_tests.php Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] Skip: Reflection with type hints only tested for PHP 5.1.0 and above at [/home/ezyang/Dev/simpletest/test/reflection_php5_test.php line 229] Skip: __isset and __unset overloading not tested unless PHP 5.1+ at [/home/ezyang/Dev/simpletest/test/mock_objects_test.php line 652] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 144/153, Passes: 2671, Failures: 0, Exceptions: 0 PHP 5.0.5 all_tests.php Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] Skip: Reflection with type hints only tested for PHP 5.1.0 and above at [/home/ezyang/Dev/simpletest/test/reflection_php5_test.php line 229] Skip: __isset and __unset overloading not tested unless PHP 5.1+ at [/home/ezyang/Dev/simpletest/test/mock_objects_test.php line 652] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 144/153, Passes: 2671, Failures: 0, Exceptions: 0 PHP 5.1.0 all_tests.php Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 PHP 5.1.1 all_tests.php Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 PHP 5.1.2 all_tests.php Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 PHP 5.1.3 all_tests.php Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 PHP 5.1.4 all_tests.php Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 PHP 5.1.5 all_tests.php Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 PHP 5.1.6 all_tests.php Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at [/home/ezyang/Dev/simpletest/test/errors_test.php line 151] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 PHP 5.2.0 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.2.1 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.2.10 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.2.10RC1 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.2.11 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.2.14 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.2.15RC1 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.2.2 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.2.3 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.3.4 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.3.4RC1 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.3.5 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.3.6 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.3.7 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.3.8 all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 PHP 5.3-dev all_tests.php Skip: E_USER_ERROR not tested for PHP 5.2 and above at [/home/ezyang/Dev/simpletest/test/errors_test.php line 172] Skip: Install 'tidy' php extension to enable html tidy based parser at [/home/ezyang/Dev/simpletest/test/parsing_test.php line 631] OK Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 The test suite segfaults on all versions of PHP 5.4 I tried. Since that RC is just around the corner, it's probably worth investigating further. Edward Excerpts from Perrick Penet-Avez's message of Fri Jan 20 03:18:55 -0500 2012: > Hi Edward, > > > I was recently using SimpleTest on some old versions of PHP, > > and some of the aggressive reflection used to check object identity/non-identity > > caused certain versions of PHP to segfault. > > > > Tomorrow I can run the suite on every version of PHP from 5.0.5 to the > > latest and let you know the results. > > That would be really helpfull. I did manage to get some old PHP versions > on some old machine we have in the office, but I haven't found a > segfault yet... > > Thanks again, > Perrick > |
From: Perrick Penet-A. <pe...@no...> - 2012-01-20 09:14:00
|
Hi Edward, > I was recently using SimpleTest on some old versions of PHP, > and some of the aggressive reflection used to check object identity/non-identity > caused certain versions of PHP to segfault. > > Tomorrow I can run the suite on every version of PHP from 5.0.5 to the > latest and let you know the results. That would be really helpfull. I did manage to get some old PHP versions on some old machine we have in the office, but I haven't found a segfault yet... Thanks again, Perrick |
From: Perrick Penet-A. <pe...@no...> - 2012-01-20 08:59:06
|
Thanks for those results... It looks like everything is OK with 5.3.6 and 5.1.6 (notices are OK, we're throwing them on purpose in errors_test.php). Thank you so much, Perrick On 20/01/12 09:01, Manuel Vacelet wrote: > I ran tests twice, first with php 5.3.6 (ubuntu 10.11) then with php 5.1.6 > (centos 5) > > Here are the results: > $> php --version > PHP 5.3.6-13ubuntu3.3 with Suhosin-Patch (cli) (built: Dec 13 2011 > 18:18:37) > Copyright (c) 1997-2011 The PHP Group > Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies > with Xdebug v2.1.0, Copyright (c) 2002-2010, by Derick Rethans > $> php all_tests.php > E_USER_NOTICE: Ouch! in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 60 > E_USER_NOTICE: a in /srv/manuel/workspace/simpletest/test/errors_test.php > on line 66 > E_USER_NOTICE: b in /srv/manuel/workspace/simpletest/test/errors_test.php > on line 67 > E_USER_NOTICE: Ouch! in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 72 > E_USER_NOTICE: Ouch! in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 77 > E_USER_NOTICE: % in /srv/manuel/workspace/simpletest/test/errors_test.php > on line 82 > E_USER_NOTICE: Ouch! in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 100 > E_USER_NOTICE: Ouch! in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 106 > E_USER_WARNING: Ouch! in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 112 > E_USER_ERROR: Ouch! in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 118 > E_USER_NOTICE: % in /srv/manuel/workspace/simpletest/test/errors_test.php > on line 143 > E_RECOVERABLE_ERROR: Argument 1 passed to > RecoverableErrorTestingStub::ouch() must be an instance of > RecoverableErrorTestingStub, instance of stdClass given, called in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 164 and > defined in /srv/manuel/workspace/simpletest/test/errors_test.php(160) : > eval()'d code on line 3 > Skip: E_USER_ERROR not tested for PHP 5.2 and above at > [/srv/manuel/workspace/simpletest/test/errors_test.php line 172] > E_USER_NOTICE: Error 1 in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 211 > E_USER_NOTICE: Error 2 in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 212 > E_USER_NOTICE: Error 1 in > /srv/manuel/workspace/simpletest/test/errors_test.php on line 196 > E_USER_WARNING: Ouch in /srv/manuel/workspace/simpletest/mock_objects.php > on line 622 > E_USER_NOTICE: Method [aMissingMethod] is not mocked in > /srv/manuel/workspace/simpletest/mock_objects.php(1314) : eval()'d code on > line 115 > E_USER_ERROR: Cannot set expected arguments as $args parameter is not an > array in /srv/manuel/workspace/simpletest/mock_objects.php on line 691 > E_USER_ERROR: Ouch! in /srv/manuel/workspace/simpletest/mock_objects.php on > line 622 > E_USER_ERROR: Ouch! in /srv/manuel/workspace/simpletest/mock_objects.php on > line 622 > E_USER_ERROR: Ouch! in /srv/manuel/workspace/simpletest/mock_objects.php on > line 622 > E_USER_NOTICE: Method [aMissingMethod] is not mocked in > /srv/manuel/workspace/simpletest/mock_objects.php(1336) : eval()'d code on > line 107 > E_WARNING: Missing argument 1 for MockDummyInterface::anotherMethod(), > called in /srv/manuel/workspace/simpletest/test/interfaces_test.php on line > 34 and defined in /srv/manuel/workspace/simpletest/mock_objects.php(1311) : > eval()'d code on line 10 > Skip: Install 'tidy' php extension to enable html tidy based parser at > [/srv/manuel/workspace/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2677, Failures: 0, Exceptions: 0 > > -------------------- > > $> php --version > PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:46) > Copyright (c) 1997-2006 The PHP Group > Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies > with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans > $> php all_tests.php > > E_USER_NOTICE: Ouch! in > /opt/manuel/workspace/simpletest/test/errors_test.php on line 60 > E_USER_NOTICE: a in /opt/manuel/workspace/simpletest/test/errors_test.php > on line 66 > E_USER_NOTICE: b in /opt/manuel/workspace/simpletest/test/errors_test.php > on line 67 > E_USER_NOTICE: Ouch! in > /opt/manuel/workspace/simpletest/test/errors_test.php on line 72 > E_USER_NOTICE: Ouch! in > /opt/manuel/workspace/simpletest/test/errors_test.php on line 77 > E_USER_NOTICE: % in /opt/manuel/workspace/simpletest/test/errors_test.php > on line 82 > E_USER_NOTICE: Ouch! in > /opt/manuel/workspace/simpletest/test/errors_test.php on line 100 > E_USER_NOTICE: Ouch! in > /opt/manuel/workspace/simpletest/test/errors_test.php on line 106 > E_USER_WARNING: Ouch! in > /opt/manuel/workspace/simpletest/test/errors_test.php on line 112 > E_USER_ERROR: Ouch! in > /opt/manuel/workspace/simpletest/test/errors_test.php on line 118 > E_USER_NOTICE: % in /opt/manuel/workspace/simpletest/test/errors_test.php > on line 143 > Skip: E_RECOVERABLE_ERROR not tested for PHP below 5.2 at > [/opt/manuel/workspace/simpletest/test/errors_test.php line 151] > E_USER_NOTICE: Error 1 in > /opt/manuel/workspace/simpletest/test/errors_test.php on line 211 > E_USER_NOTICE: Error 2 in > /opt/manuel/workspace/simpletest/test/errors_test.php on line 212 > E_USER_NOTICE: Error 1 in > /opt/manuel/workspace/simpletest/test/errors_test.php on line 196 > E_USER_WARNING: Ouch in /opt/manuel/workspace/simpletest/mock_objects.php > on line 622 > E_USER_NOTICE: Method [aMissingMethod] is not mocked in > /opt/manuel/workspace/simpletest/mock_objects.php(1314) : eval()'d code on > line 115 > E_USER_ERROR: Cannot set expected arguments as $args parameter is not an > array in /opt/manuel/workspace/simpletest/mock_objects.php on line 691 > E_USER_ERROR: Ouch! in /opt/manuel/workspace/simpletest/mock_objects.php on > line 622 > E_USER_ERROR: Ouch! in /opt/manuel/workspace/simpletest/mock_objects.php on > line 622 > E_USER_ERROR: Ouch! in /opt/manuel/workspace/simpletest/mock_objects.php on > line 622 > E_USER_NOTICE: Method [aMissingMethod] is not mocked in > /opt/manuel/workspace/simpletest/mock_objects.php(1336) : eval()'d code on > line 107 > E_WARNING: Missing argument 1 for MockDummyInterface::anotherMethod(), > called in /opt/manuel/workspace/simpletest/test/interfaces_test.php on line > 34 and defined in /opt/manuel/workspace/simpletest/mock_objects.php(1311) : > eval()'d code on line 10 > Skip: Install 'tidy' php extension to enable html tidy based parser at > [/opt/manuel/workspace/simpletest/test/parsing_test.php line 631] > OK > Test cases run: 147/154, Passes: 2676, Failures: 0, Exceptions: 0 > > > On Thu, Jan 19, 2012 at 6:32 PM, Perrick Penet-Avez > <pe...@no...>wrote: > >> Hi Manuel, >> >>> I'm volunteering for runing the test suite on PHP5.1.6 (RHEL/Centos 5 >>> compat). >>> What do I have to do ? >> >> Simple enough : you checkout the SVN version of SimpleTest, then you run >> the test suit (all_test.php). And finally you can send me the results >> (without forgetting the PHP version ;-) >> >> Thanks in advance, >> Perrick >> >> >> >> >> ------------------------------------------------------------------------------ >> Keep Your Developer Skills Current with LearnDevNow! >> The most comprehensive online learning library for Microsoft developers >> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, >> Metro Style Apps, more. Free future releases when you subscribe now! >> http://p.sf.net/sfu/learndevnow-d2d >> _______________________________________________ >> Simpletest-support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpletest-support >> > > > |