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: Marcus B. <ma...@la...> - 2010-04-09 18:10:25
|
Hi... tpl 123 wrote: > Hi, > I'm new to SimpleTest, and was wondering if there are plans for a new > release of SimpleTest anytime soon. Yes, one is imminent. You can use the SVN version right now as very little is going to change before the tarball goes out. It's only the documentation that needs bringing up to date. > if I end up going with > SimpleTest for my test framework needs, is there a chance that work on > SimpleTest will not happen anymore ? It will be supported as long as there is a user base that sends me e-mails :). I've not been doing so much PHP code in recent years, but that has just changed. > > > Thanks, > Tp yours, Marcus |
|
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: tpl 1. <tpa...@gm...> - 2010-04-09 01:55:21
|
Hi, I'm new to SimpleTest, and was wondering if there are plans for a new release of SimpleTest anytime soon. Reason I ask is that, looking at the home page of http://www.simpletest.org/ , it looks like the software has not been updated since 2 years. So my concern is that, if I end up going with SimpleTest for my test framework needs, is there a chance that work on SimpleTest will not happen anymore ? Thanks, Tp |
|
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-02-25 17:27:17
|
Hi... Perrick Penet wrote: > While working with Olivier on some AFUP matters (AFUP = French PHP User > Group), he started building a Pear Package pour SimpleTest. Here's his > original message : he will probably subsribe to the list soon ;-) Good news. It's nice to have a PEAR package again. Can he track downloads so we get an idea of the demand? > > Yours, > Perrick yours, Marcus |
|
From: Perrick P. <pe...@no...> - 2010-02-25 17:06:52
|
Hello there, While working with Olivier on some AFUP matters (AFUP = French PHP User Group), he started building a Pear Package pour SimpleTest. Here's his original message : he will probably subsribe to the list soon ;-) Yours, Perrick -------- Original Message -------- Subject: Package PEAR SimpleTest Date: Thu, 25 Feb 2010 17:36:12 +0100 From: Olivier Hoareau <ol...@ph...> Hi Guys ! For my needs I built a SimpleTest PEAR package using the 1.0.1 version: You can download it here => http://pear.phppro.fr/get/simpletest-1.0.1.tgz or install it using PEAR : pear channel-discover pear.phppro.fr pear upgrade phppro/simpletest It provides a "simpletest" command line that only do .... php $*, but installs simpletest classes and files into the local PEAR repository of the host. I currently host this package because I didn't find an official one, do you have one ? I use a custom tool to create in second the package, so when you have a new version I can build a new PEAR package in short delay. I will probably release my tool as open source in several weeks / months, I'll keep you informed of that. Hope this helps, Olivier Hoareau French PHP Consultant / Expert, Bordeaux - France. http://blog.phppro.fr (in French :() |
|
From: Wermelinger R. <reg...@vo...> - 2010-02-17 09:28:45
|
Hi
Ok i didn't think about the option to modify the include-path. That makes my test-environment loading easier.
But actually I can't use the Simpletest Eclipse-Plugin anyway, because I have other Problems with the Plugin. The biggest problem is, that the plugin is only running, when I install it and restart Eclipse for the first time. As soon as i try to restart Eclipse again several errors appear when i wan't have a look into the SimpleTest configuration tab or a SimpleTest running config. I only can see an errorbox with the Message:
"Unable to create the selected preference page
An error occurred while automatically activation bundle net.sf.simpletest.clipse (551)"
The only way i found to use it again is to uninstall the Plugin. Delete simpletest files in the Eclipse programfolder (features, plugins) and then reinstall it. After that it works as far as i don't restart Eclipse again.
Very strange problem which I didn't have on my old workstation with Windows XP. I guess that the problem has something to do with Windows 7 (64bit) and it's UAC or the latest Eclipse version.
Actually I'm not motivated to try & try & try again just to work with a simple plugin. I'll test my code with the Eclipse -> Run PHP-Script option (...and the ugly unformatted output). May i try to work with the plugin again if a newer & more stable release is available.
Thanks anyway for your support.
Regards,
Reguel
-----Ursprüngliche Nachricht-----
Von: Steven Balthazor [mailto:ste...@gm...]
Gesendet: Montag, 15. Februar 2010 16:30
An: Wermelinger Reguel
Cc: Help, advice, bugs and workarounds
Betreff: Re: [Simpletest-support] PHP-Includes inside an Eclipse-SimpleTest
On Mon, Feb 15, 2010 at 1:39 AM, Wermelinger Reguel < reg...@vo...> wrote:
Hello
Thanks four your response.
The explicit using of the full directory name didn't get the Test to work. I tried the following codes:
----------------------------------------------------------------------
require_once(dirname(__FILE__).'..\lib\AutoLoader.php'); // --> fails
require_once(dirname(__FILE__).'\..\lib\AutoLoader.php'); // --> works
require_once('..\lib\AutoLoader.php'); // --> fails
require_once('\..\lib\AutoLoader.php'); // --> works
----------------------------------------------------------------------
I assume that the includes/require call inside a SimpleTest only works if the path starts with a leading directory seperator. However this doesn't really help. This way I can include the files which I'am including explicit. But the included files have other dependencies and make further includes. And that framework which im loading makes it's includes also without the leading directory-seperator.
Though i can go now and search/replace all the includes inside this framework, that's the worst case for me. As the execution as a PHP-script works it must be an issue of SimpleTest. And for me it's not good practice to adjust working code, just to let it pass it's test.
Isn't there an easier way to bring this SimpleTest to work? Has nobody else the same problems with the simpleTest run-configuration?
Best regards,
Reguel
You can modify the include path to include the directories which have all of your includes. You can add these into the php.ini file. The SimpleTest Eclipse runner has the capability for you to specify which php.ini file you wish to use (see the Eclipse/Simpletest preferences). I typically use a different php.ini file for running tests and this allows me to specify that "special" php.ini file. You may just need to add your "lib" directory to the include path. The reason why SimpleTest fails is that it starts in a different directory so the include path resolves wrong (the include path typically includes ".") when running the test via SimpleTest.
Alternately you could set the include path at the top of your script [ http://php.net/manual/en/function.set-include-path.php] or you could include a standard test library script at the top of each test script which does this for you.
I have had the problem you specified, but I solved it using the method I previously described (dirname(__FILE__)). In my applications I always use this method to load libraries. I had problems (many years ago) when I relied on the files being magically found by the include path (which is why it works running it one way, but not another way) because inevitably I would need to deploy my application somewhere else and having to duplicate the include path environment exactly everywhere can become burdensome. Also by explicitly telling php where to find the file you save the server from having to traverse all of the paths in the include_path to try and find each file you specify. In your case it looks like you are just using this in one place to load an autoloader file so it probably does not cause much of a performance hit. My reasons may or may not be best practices but they work for me -- YMMV.
Regards,
Steven Balthazor
|
|
From: Steven B. <ste...@gm...> - 2010-02-15 15:29:40
|
On Mon, Feb 15, 2010 at 1:39 AM, Wermelinger Reguel <
reg...@vo...> wrote:
> Hello
>
> Thanks four your response.
>
> The explicit using of the full directory name didn't get the Test to work.
> I tried the following codes:
> ----------------------------------------------------------------------
> require_once(dirname(__FILE__).'..\lib\AutoLoader.php'); // --> fails
> require_once(dirname(__FILE__).'\..\lib\AutoLoader.php'); // --> works
> require_once('..\lib\AutoLoader.php'); // --> fails
> require_once('\..\lib\AutoLoader.php'); // --> works
> ----------------------------------------------------------------------
>
> I assume that the includes/require call inside a SimpleTest only works if
> the path starts with a leading directory seperator. However this doesn't
> really help. This way I can include the files which I'am including explicit.
> But the included files have other dependencies and make further includes.
> And that framework which im loading makes it's includes also without the
> leading directory-seperator.
>
> Though i can go now and search/replace all the includes inside this
> framework, that's the worst case for me. As the execution as a PHP-script
> works it must be an issue of SimpleTest. And for me it's not good practice
> to adjust working code, just to let it pass it's test.
>
> Isn't there an easier way to bring this SimpleTest to work? Has nobody else
> the same problems with the simpleTest run-configuration?
>
> Best regards,
> Reguel
>
You can modify the include path to include the directories which have all of
your includes. You can add these into the php.ini file. The SimpleTest
Eclipse runner has the capability for you to specify which php.ini file you
wish to use (see the Eclipse/Simpletest preferences). I typically use a
different php.ini file for running tests and this allows me to specify that
"special" php.ini file. You may just need to add your "lib" directory to
the include path. The reason why SimpleTest fails is that it starts in a
different directory so the include path resolves wrong (the include path
typically includes ".") when running the test via SimpleTest.
Alternately you could set the include path at the top of your script [
http://php.net/manual/en/function.set-include-path.php] or you could include
a standard test library script at the top of each test script which does
this for you.
I have had the problem you specified, but I solved it using the method I
previously described (dirname(__FILE__)). In my applications I always use
this method to load libraries. I had problems (many years ago) when I
relied on the files being magically found by the include path (which is why
it works running it one way, but not another way) because inevitably I would
need to deploy my application somewhere else and having to duplicate the
include path environment exactly everywhere can become burdensome. Also by
explicitly telling php where to find the file you save the server from
having to traverse all of the paths in the include_path to try and find each
file you specify. In your case it looks like you are just using this in one
place to load an autoloader file so it probably does not cause much of a
performance hit. My reasons may or may not be best practices but they work
for me -- YMMV.
Regards,
Steven Balthazor
|
|
From: Wermelinger R. <reg...@vo...> - 2010-02-15 08:40:40
|
Hello
Thanks four your response.
The explicit using of the full directory name didn't get the Test to work. I tried the following codes:
----------------------------------------------------------------------
require_once(dirname(__FILE__).'..\lib\AutoLoader.php'); // --> fails
require_once(dirname(__FILE__).'\..\lib\AutoLoader.php'); // --> works
require_once('..\lib\AutoLoader.php'); // --> fails
require_once('\..\lib\AutoLoader.php'); // --> works
----------------------------------------------------------------------
I assume that the includes/require call inside a SimpleTest only works if the path starts with a leading directory seperator. However this doesn't really help. This way I can include the files which I'am including explicit. But the included files have other dependencies and make further includes. And that framework which im loading makes it's includes also without the leading directory-seperator.
Though i can go now and search/replace all the includes inside this framework, that's the worst case for me. As the execution as a PHP-script works it must be an issue of SimpleTest. And for me it's not good practice to adjust working code, just to let it pass it's test.
Isn't there an easier way to bring this SimpleTest to work? Has nobody else the same problems with the simpleTest run-configuration?
Best regards,
Reguel
-----Ursprüngliche Nachricht-----
Von: Steven Balthazor [mailto:ste...@gm...]
Gesendet: Freitag, 12. Februar 2010 15:20
An: Help, advice,bugs and workarounds
Betreff: Re: [Simpletest-support] PHP-Includes inside an
Eclipse-SimpleTest
On Fri, Feb 12, 2010 at 6:01 AM, Wermelinger Reguel <
reg...@vo...> wrote:
> Hi
>
> Im trying to run a UnitTestCase inside Eclipse with the SimpleTest-Plugin.
>
> I can execute my test when I open the context-menu of a php-file with
> testcode, there i select "run as" -> "php script".
> The test execution works and i see the result in an unformatted view "debug
> output".
>
> But i like to execute the Test with the Simpletest-Runconfig, to see the
> better formatted test-output in the "Result View".
> This works also as long as i don't use any include or require statements
> inside the Testcase. But most of my testcases are depending on some
> libraries that i use. Now i can't include them or I run into errors. The PHP
> Output displays, that the files are not found in the given path, even if the
> files exist.
>
> The strange thing is, that the includes work if i point to files which are
> in the same folder as the testfile. It also works if use full path to
> include the file. But no chance with realtive paths....
>
> ---------------------------------------------------------------------------
> An excample: this could be my Testcase:
> // Library Autoloader:
> require_once('../lib/AutoLoader.php'); // doesn't work -> relative path!
> AutoLoader::Register();
>
> Hello,
This fix is simple, you need to give the require/include paths to the
library relative to file which has the require_once inside of it.
The method I use is (something like):
require_once(dirname(__FILE__).'/../../somedir/someotherdir/lib/AutoLoader.php');
The dirname(__FILE__) gives the directory of the file the php processor is
currently processing.
Hope this helps.
Regards,
Steven Balthzor
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Simpletest-support mailing list
Sim...@li...
https://lists.sourceforge.net/lists/listinfo/simpletest-support
|
|
From: Steven B. <ste...@gm...> - 2010-02-12 14:20:04
|
On Fri, Feb 12, 2010 at 6:01 AM, Wermelinger Reguel <
reg...@vo...> wrote:
> Hi
>
> Im trying to run a UnitTestCase inside Eclipse with the SimpleTest-Plugin.
>
> I can execute my test when I open the context-menu of a php-file with
> testcode, there i select "run as" -> "php script".
> The test execution works and i see the result in an unformatted view "debug
> output".
>
> But i like to execute the Test with the Simpletest-Runconfig, to see the
> better formatted test-output in the "Result View".
> This works also as long as i don't use any include or require statements
> inside the Testcase. But most of my testcases are depending on some
> libraries that i use. Now i can't include them or I run into errors. The PHP
> Output displays, that the files are not found in the given path, even if the
> files exist.
>
> The strange thing is, that the includes work if i point to files which are
> in the same folder as the testfile. It also works if use full path to
> include the file. But no chance with realtive paths....
>
> ---------------------------------------------------------------------------
> An excample: this could be my Testcase:
> // Library Autoloader:
> require_once('../lib/AutoLoader.php'); // doesn't work -> relative path!
> AutoLoader::Register();
>
> Hello,
This fix is simple, you need to give the require/include paths to the
library relative to file which has the require_once inside of it.
The method I use is (something like):
require_once(dirname(__FILE__).'/../../somedir/someotherdir/lib/AutoLoader.php');
The dirname(__FILE__) gives the directory of the file the php processor is
currently processing.
Hope this helps.
Regards,
Steven Balthzor
|
|
From: Wermelinger R. <reg...@vo...> - 2010-02-12 14:13:21
|
Hi
Im trying to run a UnitTestCase inside Eclipse with the SimpleTest-Plugin.
I can execute my test when I open the context-menu of a php-file with testcode, there i select "run as" -> "php script".
The test execution works and i see the result in an unformatted view "debug output".
But i like to execute the Test with the Simpletest-Runconfig, to see the better formatted test-output in the "Result View".
This works also as long as i don't use any include or require statements inside the Testcase. But most of my testcases are depending on some libraries that i use. Now i can't include them or I run into errors. The PHP Output displays, that the files are not found in the given path, even if the files exist.
The strange thing is, that the includes work if i point to files which are in the same folder as the testfile. It also works if use full path to include the file. But no chance with realtive paths....
---------------------------------------------------------------------------
An excample: this could be my Testcase:
// Library Autoloader:
require_once('../lib/AutoLoader.php'); // doesn't work -> relative path!
AutoLoader::Register();
// Create ModX Instance:
include_once('modxEnvironment.php'); // works -> same folder!
// Snippet AutoLoader:
$snippetPath = $modx->getConfig('base_path').'assets/snippets/';
require_once($snippetPath . 'SnippetAutoLoader.php'); // works -> full qualified name!
SnippetAutoLoader::Register();
// Load Testframework:
$relativeSimpletestPath = '../simpletest/';
$loadFrameworkFiles = array('autorun.php', 'reporter.php', 'web_tester.php');
foreach($loadFrameworkFiles as $file){
require_once($relativeSimpletestPath.$file); // doesn't work -> relative path!
}
class TranslationMgmtSnippetTest extends UnitTestCase{
.........
}
---------------------------------------------------------------------------
The Error Output looks like this:
Running:
echo "<?php $path='D:\Projekte\webprojekte\vowa\scripts\simpletest';ini_set('include_path', get_include_path().PATH_SEPARATOR . realpath($path));ini_set('html_errors','0');$fullpath = realpath('D:/Projekte/webprojekte/modx.vowa.ch/externals/tests/LangfinderMgmtTest.php');$pathparts = pathinfo($fullpath);$filename = $pathparts['basename'];include_once('xml.php');include_once('unit_tester.php');include_once('mock_objects.php');include_once('test_case.php');include_once('invoker.php');$test=new GroupTest($filename);$test->addTestFile($fullpath);$test->run(new XmlReporter()); ?>" | "C:\Program Files (x86)\eclipsePdt\plugins\org.zend.php.debug.debugger.win32.x86_5.2.26.v20090817\resources\php53\php.exe" -q -c "C:\Program Files (x86)\eclipsePdt\plugins\org.zend.php.debug.debugger.win32.x86_5.2.26.v20090817\resources\php53\php.ini"
*************
Warning: require_once(../lib/AutoLoader.php): failed to open stream: No such file or directory in D:\Projekte\webprojekte\modx.vogelwarte.ch\externals\tests\testEnvironmentLoader.php on line 3
Fatal error: require_once(): Failed opening required '../lib/AutoLoader.php' (include_path='.;C:\php5\pear;D:\Projekte\webprojekte\www.vogelwarte.ch\scripts\simpletest') in D:\Projekte\webprojekte\modx.vogelwarte.ch\externals\tests\testEnvironmentLoader.php on line 3
Process returned: 255
---------------------------------------------------------------------------
My Config:
OS = Windows 7 pro (64 bit)
Eclipse = 3.5.1
SimpletestPlugin = 1.0.1 eclipse 0.2.5
How can i bring the SimpleTest-RunConfig to work?
|
|
From: Marcus B. <ma...@wo...> - 2010-02-12 11:02:03
|
Hi...
x03...@ya... wrote:
> $this->click('Go',array('secret'=>'word'));
The click method does not pass through parameters. Unfortunately
that argument is used to find the nth occourence of the label in the
event there are multiple buttons/links with that label.
That really wasn't a good use of that argument position, and your
usage is a lot better. A bad API choice on my part.
The work around is to use get() or post() to post the whole form.
I'm curious though...why are you trying to change the alue of a
hidden field. The use can't do that?
yours, Marcus
|
|
From: <x03...@ya...> - 2010-02-11 16:29:51
|
I read in the archives that hidden fields generate a request every couple of months. Maybe mine can be the one for this bi-monthly period.
I've read about the workaround but that doesn't seem to work for me and I haven't been able to figure it out.
I have a simple form which you can see here:
http://giganto-corp.com/st/test.php
It has 2 fields: a visible name field and a hidden field named 'secret'. When you fill out the name and submit, the page just repaints with the name you entered and the 'secret' value below the form.
Here is the test
<?php
error_reporting(E_ALL & ~E_DEPRECATED);
require_once '../lib/simpletest/autorun.php';
require_once '../lib/simpletest/unit_tester.php';
require_once '../lib/simpletest/web_tester.php';
class AllTests extends WebTestCase {
function testForm() {
$this->assertTrue($this->get("http://localhost/st/test.php"));
$this->assertText('My Form');
$this->setField('name','charlie');
$this->click('Go',array('secret'=>'word'));
$this->assertText('charlie');
$this->assertText('word');
}
}
?>
I set the name to 'charlie' and on the submit I set the 'secret' value to 'word'. The subsequent test for 'charlie' passes, but the test for 'word' fails. If I change the last test to look for 'junk', which is the default value of the hidden field, the test passes.
Where have I screwed up?
BTW, here is the code for the form:
<?php
$name = $_POST['name'];
$hidden = $_POST['secret'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head>
<title>Simpletest Problem</title>
</head>
<body>
<h1>My Form</h1>
<form id="my-upload-form" action="test.php" method="post"
enctype="multipart/form-data" >
<input type="text" name="name"/>
<input type="hidden" name="secret" value="junk"/>
<input type="submit" name="submit-button" value="Go"/>
</form>
<h1>Previous Values</h1>
Name: <?php echo $name; ?><br />
Hidden: <?php echo $hidden; ?>
</body>
</html>
|
|
From: Per N. <per...@gm...> - 2010-01-19 10:56:25
|
Thanks! On Tue, Jan 19, 2010 at 11:37 AM, Marcus Baker <ma...@wo...>wrote: > Hi... > > Per Nissilä wrote: > > I am getting alot of Strict Standards: error messages like the > > following: > > You need to get the version 1.1 of SimpleTest straight from the > subversion repository. It will be released as a tarball pretty soon > (just docs to finish), but the repository will be quicker. > > Just follow the Sourceforge instructions on how to do that. If not, > you will have to turn off E_STRICT at the top of the test script. > > SimpleTest 1.0.1 is PHP 4 compatible as well as PHP 5. The PHP 4 > compatibility is impossible to maintain alongside PHP 5 E_STRICT. > SimpleTest 1.1 only supports PHP 5.0.3+, and so does not have that > restriction. > > yours, Marcus > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important issues > through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > -- Mvh Per Nissilä Pixly Webb - Design och utveckling för webben http://www.pixly.se 072 200 24 88 |
|
From: Marcus B. <ma...@wo...> - 2010-01-19 10:31:32
|
Hi... Per Nissilä wrote: > I am getting alot of Strict Standards: error messages like the > following: You need to get the version 1.1 of SimpleTest straight from the subversion repository. It will be released as a tarball pretty soon (just docs to finish), but the repository will be quicker. Just follow the Sourceforge instructions on how to do that. If not, you will have to turn off E_STRICT at the top of the test script. SimpleTest 1.0.1 is PHP 4 compatible as well as PHP 5. The PHP 4 compatibility is impossible to maintain alongside PHP 5 E_STRICT. SimpleTest 1.1 only supports PHP 5.0.3+, and so does not have that restriction. yours, Marcus |
|
From: Per N. <per...@gm...> - 2010-01-18 22:42:34
|
I am getting alot of Strict Standards: error messages like the
following:
Strict Standards: Non-static method SimpleTest::getContext() should
not be called statically, assuming $this from incompatible context in/
home/per/web/fw/tests/simpletest/test_case.php on line 126
Strict Standards: Non-static method SimpleTest::getContext() should
not be called statically in/home/per/web/fw/tests/simpletest/
autorun.php on line 44
Strict Standards: Assigning the return value of new by reference is
deprecated in/home/per/web/fw/tests/simpletest/unit_tester.php on line
74
I am new to SimpleTest. Am i doing something wrong?
Here is the "test":
<?php
require_once(dirname(__FILE__) . '/simpletest/autorun.php');
class TestAppbuilderDatabase extends UnitTestCase {
}
$test = new TestAppbuilderDatabase();
$test->run(new HtmlReporter());
?>
|
|
From: Marcus B. <ma...@la...> - 2010-01-08 09:58:05
|
Hi... Eric Cope wrote: > I am not sure if this is an error related to my setup (MAMP). Any > ideas? No, it's a bug. Of course it all works if you run the tests from the all_tests.php directory, but not otherwise (doh). I'll add a fix for this. > Thanks, > Eric Cope Cheers. yours, Marcus |
|
From: Eric C. <eri...@gm...> - 2010-01-08 04:52:29
|
Hello all,
I recently downloaded simpletest, specifically to for integration testing. I
was following the TestSuite tutorial, but found an error.
The code did not work unless I added the dirname(__FILE__) to the addFile
line. I am not sure if this is an error related to my setup (MAMP). Any
ideas?
class AllTests extends TestSuite {
function AllTests() {
$this->TestSuite('All Tests');
$this->addFile(dirname(__FILE__) . '/login_tests.php');
}
}
Thanks,
Eric Cope
|
|
From: Marcus B. <ma...@wo...> - 2010-01-06 16:54:32
|
Hi... Peter Simmons wrote: > Which config do you mean the PHP Under Control calling phing? Yes please, but I meant the Phing task. > > Pete yours, Marcus |
|
From: Peter S. <cab...@gm...> - 2010-01-06 16:51:26
|
Which config do you mean the PHP Under Control calling phing? Pete irc: cabbiepete 2010/1/6 Marcus Baker <ma...@wo...> > Hi... > > Peter Simmons wrote: > > We use phing for doing the builds and php under control (cruise control) > > just calls the phing command to do it. > > Could you post the Phing configuration? > > > > > Cheers, > > Pete > > yours, Marcus > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
|
From: Marcus B. <ma...@wo...> - 2010-01-06 14:57:14
|
Hi... Peter Simmons wrote: > We use phing for doing the builds and php under control (cruise control) > just calls the phing command to do it. Could you post the Phing configuration? > > Cheers, > Pete yours, Marcus |
|
From: Peter S. <cab...@gm...> - 2010-01-06 14:29:54
|
We use the php under control method with a ever so slightly customised simple test that works the code coverage, and code sniffer stuff in. (maybe only customised in that we took svn trunk and used it I forget exactly). We use phing for doing the builds and php under control (cruise control) just calls the phing command to do it. Cheers, Pete irc: cabbiepete 2010/1/6 Nicolas Terray <nic...@gm...> > 2010/1/6 Andrés Hernandez <and...@gm...>: > > Hello everyone, > > > > I apologize if this is a bit off topic. I would like to know what tools > are > > you all using to automate deployment and tests (or your continuous > > integration strategy). > > Hi, > > Hudson is a great, active and well known tool for CI. Since SimpleTest > can export the tests results as xml > (extensions/junit_xml_reporter.php) hudson can build graphs based on > those results. Additional metrics like checkstyle (with > PHP_CodeSniffer) can also be included. > > Hope this helps, > Nicolas Terray > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
|
From: Nicolas T. <nic...@gm...> - 2010-01-06 11:35:09
|
2010/1/6 Andrés Hernandez <and...@gm...>: > Hello everyone, > > I apologize if this is a bit off topic. I would like to know what tools are > you all using to automate deployment and tests (or your continuous > integration strategy). Hi, Hudson is a great, active and well known tool for CI. Since SimpleTest can export the tests results as xml (extensions/junit_xml_reporter.php) hudson can build graphs based on those results. Additional metrics like checkstyle (with PHP_CodeSniffer) can also be included. Hope this helps, Nicolas Terray |
|
From: Mark <co...@gm...> - 2010-01-06 10:49:16
|
Feel free to contact me off list if you need some help installing it. -- Mark Rickerby http://maetl.net |
|
From: Perrick P. <pe...@no...> - 2010-01-06 10:06:29
|
Hi there, *** I'm sorry this post is about "ransack" and not about SimpleTest. Feel free to skip reading the rest. *** This non-PHPUnit stuff could be the thing for me. So I downloaded the SVN trunk and installed it on my machine. I then edited the "config.php" file to add a local database. Unfortunately I'm stuck right there... I guess it's not quite ready for a beta-test ;-) It could be promising though. And I'll add the first bug report. Yours, Perrick On 06/01/10 10:19, Mark wrote: > I have been using a quick-and-nasty CI tool I wrote called Ransack... > > http://code.google.com/p/ransack/ > > As well as extracting test results, it allowed me to string together > various analysis tools, such as PDepend and duplicate code detectors, > which has been useful for dealing with getting legacy code under > control. > > Currently, doesn't do much beyond the bare minimum, and it could do > with some design love. > > Regards, > > -- > Mark Rickerby > http://maetl.net > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > > |