|
From: Robert S. <rob...@gm...> - 2010-04-08 23:01:09
|
I'm getting the following error my guess is that I am causing an infinite
(or nearly so) loop, but am unable to determine the fix:
*Fatal error*: Allowed memory size of 134217728 bytes exhausted (tried to
allocate 39 bytes) in *simpletest\compatibility.php* on line *92*
*
*
Here's the offending code:
*
*
*
Mock::generate('IRepository', 'MockRepository');
class TestCategory extends InMemoryDoctrineModelTestCase{
function TestCategory(){
$this->InMemoryDoctrineModelTestCase('Category model class tests');
}
public function testGetEvents(){
$category = $this->createCategory();
$category->repository->expectOnce('getInstancesOf', array('Event',
array('where' => array('category' => $category) ,'limit' => 10)));
$category->getEvents(10);
}
private function createCategory(){
$category = new Category();
$category->name = "category";
$category->save();
$category->repository = new MockRepository();
return $category;
}
}
The offending line seems to be:
$category->repository->expectOnce('getInstancesOf', array('Event',
array('where' => array('category' => $category) ,'limit' => 10)));
*
The error has something to do with the nested arrays.
The code is crashing in the _isArrayOfIdenticalTypes function in
compatibility.php.
Any help would be greatly appreciated.
Thanks,
Robert
|
|
From: Marcus B. <ma...@la...> - 2010-04-09 17:49:54
|
Hi... Robert Stackhouse wrote: > *Fatal error*: Allowed memory size of 134217728 bytes exhausted (tried to > allocate 39 bytes) in *simpletest\compatibility.php* on line *92* Ouch! Which version are you using? What are your php.ini error settings (esp. log_errors)? > Any help would be greatly appreciated. You have quite a spectacular problem if the self tests don't even run. I'm keen to fix this. > > Thanks, > > Robert yours, Marcus |
|
From: Robert S. <rob...@gm...> - 2010-04-10 12:49:29
|
Marcus, I'm using PHP 5.3.0 and Simpletest 1.0.1. All but one of the test suites I've written using Simpletest work. I tried running simpletest/test/all_tests.php and I got this: Skipped: All tests for SimpleTest 1.0.1 -> C:\Users\Robert\Desktop\inaggieland\simpletest\test/unit_tests.php -> Unit tests -> C:\Users\Robert\Desktop\inaggieland\simpletest\test/errors_test.php -> E_USER_ERROR not tested for PHP 5.2 and above at [C:\Users\Robert\Desktop\inaggieland\simpletest\test\errors_test.php line 243] On Fri, Apr 9, 2010 at 12:38 PM, Marcus Baker <ma...@la...> wrote: > Hi... > > Robert Stackhouse wrote: > > *Fatal error*: Allowed memory size of 134217728 bytes exhausted (tried to > > allocate 39 bytes) in *simpletest\compatibility.php* on line *92* > > Ouch! Which version are you using? What are your php.ini error settings > (esp. log_errors)? > > > > Any help would be greatly appreciated. > > You have quite a spectacular problem if the self tests don't even run. > I'm keen to fix this. > > > > > Thanks, > > > > Robert > > yours, Marcus > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > -- Robert Stackhouse http://robertstackhouse.com http://robertstackhouse.com/friendfeed http://agilebcs.org http://bcsbloggers.org http://uweb.tamu.edu |
|
From: Robert S. <rob...@gm...> - 2010-04-14 15:59:29
|
Marcus, I pulled down SimpleTest from the SourceForge SVN repo and ran the tests in simpletest/simpletest/trunk/test/all_tests.php and got the following result: Skipped: All tests for SimpleTest 1.1beta -> C:\Users\Robert\Desktop\inaggieland\simpletest\simpletest\trunk\test/unit_tests.php -> Unit tests -> C:\Users\Robert\Desktop\inaggieland\simpletest\simpletest\trunk\test/errors_test.php -> E_USER_ERROR not tested for PHP 5.2 and above at [C:\Users\Robert\Desktop\inaggieland\simpletest\simpletest\trunk\test\errors_test.php line 172] Skipped: All tests for SimpleTest 1.1beta -> C:\Users\Robert\Desktop\inaggieland\simpletest\simpletest\trunk\test/unit_tests.php -> Unit tests -> C:\Users\Robert\Desktop\inaggieland\simpletest\simpletest\trunk\test/parsing_test.php -> Install 'tidy' php extension to enable html tidy based parser at [C:\Users\Robert\Desktop\inaggieland\simpletest\simpletest\trunk\test\parsing_test.php line 631] On Sat, Apr 10, 2010 at 7:49 AM, Robert Stackhouse < rob...@gm...> wrote: > Marcus, > > I'm using PHP 5.3.0 and Simpletest 1.0.1. All but one of the test suites > I've written using Simpletest work. > > I tried running simpletest/test/all_tests.php and I got this: > > Skipped: All tests for SimpleTest 1.0.1 -> > C:\Users\Robert\Desktop\inaggieland\simpletest\test/unit_tests.php -> Unit > tests -> C:\Users\Robert\Desktop\inaggieland\simpletest\test/errors_test.php > -> E_USER_ERROR not tested for PHP 5.2 and above at > [C:\Users\Robert\Desktop\inaggieland\simpletest\test\errors_test.php line > 243] > > > On Fri, Apr 9, 2010 at 12:38 PM, Marcus Baker <ma...@la...>wrote: > >> Hi... >> >> Robert Stackhouse wrote: >> > *Fatal error*: Allowed memory size of 134217728 bytes exhausted (tried >> to >> > allocate 39 bytes) in *simpletest\compatibility.php* on line *92* >> >> Ouch! Which version are you using? What are your php.ini error settings >> (esp. log_errors)? >> >> >> > Any help would be greatly appreciated. >> >> You have quite a spectacular problem if the self tests don't even run. >> I'm keen to fix this. >> >> > >> > Thanks, >> > >> > Robert >> >> yours, Marcus >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Simpletest-support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpletest-support >> > > > > -- > Robert Stackhouse > > http://robertstackhouse.com > http://robertstackhouse.com/friendfeed > http://agilebcs.org > http://bcsbloggers.org > http://uweb.tamu.edu > -- Robert Stackhouse http://robertstackhouse.com http://robertstackhouse.com/friendfeed http://agilebcs.org http://bcsbloggers.org http://uweb.tamu.edu |
|
From: Marcus B. <ma...@la...> - 2010-04-15 10:55:35
|
Hi... Robert Stackhouse wrote: > I pulled down SimpleTest from the SourceForge SVN repo and ran the tests in > simpletest/simpletest/trunk/test/all_tests.php and got the following result: It's like it's recursively running itself. How strange. OK, I'll look at it later today. yours, Marcus |
|
From: <min...@fr...> - 2010-04-15 13:38:14
|
Hi there, I'm a new user of SimpleTest and I'm having some strange problems with it. I installed it on my personal webserver (php5) on an Ubuntu server with Apache 2. BTW, I tried it on a windows easyphp installation too (php 5.3.0). First of all, I had a lot of warnings about deprecated " = &new ". I corrected this by removing each & before the new. Now, a simple test is working well, but when I want to do an "all_tests.php", I got this errors : Warning: include_once(base_test.php) [function.include-once]: failed to open stream: No such file or directory in C:\Documents and Settings\Administrator\My Documents\web\openRH\tests\simpletest\test_case.php on line 391 Warning: include_once() [function.include]: Failed opening 'base_test.php' for inclusion (include_path='.;C:\php5\pear') in C:\Documents and Settings\Administrator\My Documents\web\openRH\tests\simpletest\test_case.php on line 391 Warning: file_get_contents(base_test.php) [function.file-get-contents]: failed to open stream: No such file or directory in C:\Documents and Settings\Administrator\My Documents\web\openRH\tests\simpletest\test_case.php on line 428 Is there something special to do on it ? I really don't understand why the include is not working, the two files (base_test.php and all_tests.php) are in the same directory and, as I said, base_test alone is working perfectly. Best regards, Thomas, |
|
From: <min...@fr...> - 2010-04-16 09:49:41
|
Hi again,
I checked out the SVN version but I'm having exactly the same problem. It seems
that my file all_tests.php can't include my file base_test.php.
The all_tests.php source code is very simple :
<?php
require_once('simpletest/autorun.php');
class AllTests extends TestSuite
{
function AllTests()
{
$this->TestSuite('Tous les tests');
$this->addFile('base_test.php');
}
}
?>
I used the /simpletest/trunk/ from SVN
Regards,
Mindiell
|
|
From: Jason S. <jsw...@ya...> - 2010-04-15 17:48:55
|
Hello and welcome, The shortest answer is use head from svn, and most of your problems will disappear. A release is "coming soon" which would package up all the recent changes for you. Regards, Jason ________________________________ From: "min...@fr..." <min...@fr...> To: "Help, advice, bugs and workarounds" <sim...@li...> Sent: Thu, April 15, 2010 8:38:00 AM Subject: [Simpletest-support] (no subject) Hi there, I'm a new user of SimpleTest and I'm having some strange problems with it. I installed it on my personal webserver (php5) on an Ubuntu server with Apache 2. BTW, I tried it on a windows easyphp installation too (php 5.3.0). First of all, I had a lot of warnings about deprecated " = &new ". I corrected this by removing each & before the new. Now, a simple test is working well, but when I want to do an "all_tests.php", I got this errors : Warning: include_once(base_test.php) [function.include-once]: failed to open stream: No such file or directory in C:\Documents and Settings\Administrator\My Documents\web\openRH\tests\simpletest\test_case.php on line 391 Warning: include_once() [function.include]: Failed opening 'base_test.php' for inclusion (include_path='.;C:\php5\pear') in C:\Documents and Settings\Administrator\My Documents\web\openRH\tests\simpletest\test_case.php on line 391 Warning: file_get_contents(base_test.php) [function.file-get-contents]: failed to open stream: No such file or directory in C:\Documents and Settings\Administrator\My Documents\web\openRH\tests\simpletest\test_case.php on line 428 Is there something special to do on it ? I really don't understand why the include is not working, the two files (base_test.php and all_tests.php) are in the same directory and, as I said, base_test alone is working perfectly. Best regards, Thomas, ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Simpletest-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpletest-support |
|
From: Mindiell <min...@fr...> - 2010-04-15 19:04:25
|
Le jeudi 15 avril 2010 à 10:48 -0700, Jason Sweat a écrit : > The shortest answer is use head from svn, and most of your problems will disappear. > Thanks, I will have a look at it. Mindiell, And sorry for the (no subject) thing, I hate it personnaly :o) |