<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://permalink.gmane.org/gmane.comp.php.simpletest.general">
    <title>gmane.comp.php.simpletest.general</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2751"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2750"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2749"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2748"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2747"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2746"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2745"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2744"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2743"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2742"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2741"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2740"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2739"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2738"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2737"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2736"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2735"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2734"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2733"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2732"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2751">
    <title>Mocks and $this references?</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2751</link>
    <description>Hey guys;

Another random bug, and one I haven't dove into at all, but I'm seeing  
some test failures where $this is being referred to in mocked  
objects.  I'm assuming the code is just using mocks as statics where  
Mock::generate() didn't know it was a mock, but...  Anyone else seen  
something similar?

If I get it narrowed down and it's a real bug, I'll get a test case  
together to show it.

-T

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Travis Swicegood</dc:creator>
    <dc:date>2008-08-27T16:28:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2750">
    <title>Re: sprintf error</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2750</link>
    <description>Howdy all...

On Aug 27, 2008, at 9:00 AM, Marcus Baker wrote:


I solved it.  The code was passing in strings with "%" in it, adding  
an escape() method that does s/%/%%/g fixed it.



Next year :-)

-T

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Travis Swicegood</dc:creator>
    <dc:date>2008-08-27T16:26:28</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2749">
    <title>Re: sprintf error</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2749</link>
    <description>Hi...

Travis Swicegood wrote:

None, and I'm nowhere near my home development set up at the moment. 
I'll chase it later today unless you solve it first.

Shouldn't you be on your honeymoon?


yours, Marcus

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Marcus Baker</dc:creator>
    <dc:date>2008-08-27T14:00:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2748">
    <title>sprintf error</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2748</link>
    <description>Hey guys;

Was just trying to upgrade from an older version of SimpleTest to the  
latest in SVN and I'm getting a ton of these errors:

Exception: testSomeTest -&gt; Unexpected PHP error [sprintf() [&lt;a  
href='function.sprintf'&gt;function.sprintf&lt;/a&gt;]: Too few arguments]  
severity [2] in [/path/to/simpletest/test_case.php line 315]

Any ideas?
-T

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Travis Swicegood</dc:creator>
    <dc:date>2008-08-26T20:34:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2747">
    <title>Re: input parameters to tests</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2747</link>
    <description>
Marcus, here is my latest attempt.  I have other examples I give next week. 
Below is an attempt to create a run script that will run 1 test (useful for 
working on the test and avoids having to edit the run file).

Why does this fail like this?  To me what gets passed to the test should be 
exactly the same (the var gets expanded into the same string).

markd&lt; at &gt;snape: ./rat.php UnitTests/testparseBrowseMenus.php

RAT: prarameters are:./rat.php
UnitTests/testparseBrowseMenus.php

Catchable fatal error: Object of class TestSuite could not be converted to 
string in /usr/local/simpletest/test_case.php on line 391
markd&lt; at &gt;snape: ./rat.php UnitTests/testparseBrowseMenus.php

If I adjust the requires in the test and just have 
UnitTests/testparseBrowseMenus.php as the test to run it works.

Here is the code:
#!/usr/bin/php
&lt;?php
/* simpletest includes */
require_once '/usr/local/simpletest/unit_tester.php';
require_once '/usr/local/simpletest/web_tester.php';
require_once '/usr/local/simpletest/reporter.php';

requi</description>
    <dc:creator>Mark Donohoe</dc:creator>
    <dc:date>2008-08-22T19:35:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2746">
    <title>Re: "Mocking" internally called functions/classes</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2746</link>
    <description>On Fri, 22 Aug 2008 06:57:59 +0300
"Kyohere Luke" &lt;pr0f3t-Re5JQEeQqe8AvxtiuMwx3w&lt; at &gt;public.gmane.org&gt; wrote:


If class_c-&gt;method_d() is part of the logic of class_A-&gt;method_B()
then it is relevant to the test. Mocking is often a good way to test
object interactions but you could also use the real object. There are
pros and cons to both. I usually favour mocks myself. 

Actually, mocks are more about design than testing (although that too).
If you were coding test-first, you'd have discovered a need for class_C
while writing a test for class_A, mocked it out, and then come back to
implement it later. I can't recommend this way of working strongly
enough. For one thing, you wouldn't be wondering how to test the class
you've just written: it would already be fully-tested ;)

You probably should pass it in (either directly or via some kind of
registry/container, as suggested above, and probably in that order of
preference). 

Very often that will be the best choice - but it isn't *always* the
best choice. If class</description>
    <dc:creator>Noel Darlow</dc:creator>
    <dc:date>2008-08-22T18:09:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2745">
    <title>Re: Setting a checkbox</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2745</link>
    <description>I've got it! I was looping through an array of fields and values,
setting various fields to various values and checking the database to
make sure that the correct value was stored. However, for checkboxes,
the set value ('on') isn't the same as the saved value (-1), so my test
failed. I just need to special-case checkboxes. 

Thanks for your quick offer of help! I love SimpleTest.

Margy Levine Young, Systems Analyst
UUA Information Technology Staff Group
myoung-5IfnEjJzJ3M&lt; at &gt;public.gmane.org, 802-989-3371
"We need not think alike to love alike." -- David Ferenc
 

-----Original Message-----
From: simpletest-support-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
[mailto:simpletest-support-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org] On Behalf Of
Marcus Baker
Sent: Friday, August 22, 2008 9:26 AM
To: Help, advice, bugs and workarounds
Subject: Re: [Simpletest-support] Setting a checkbox

Hi...

Margy Levine Young wrote:

'on' or true should have worked. Can you post the bit of HTML it w</description>
    <dc:creator>Margy Levine Young</dc:creator>
    <dc:date>2008-08-22T16:28:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2744">
    <title>Re: Setting a checkbox</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2744</link>
    <description>Hi...

Margy Levine Young wrote:

'on' or true should have worked. Can you post the bit of HTML it was 
trying to read, and the test? I can debug from there.


yours, Marcus

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Marcus Baker</dc:creator>
    <dc:date>2008-08-22T13:25:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2743">
    <title>Setting a checkbox</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2743</link>
    <description>I'm having trouble setting a checkbox -- it ought to be simple, but I
don't seem to be able to get the value right.

 

The form contains this field:

 

    &lt;input type="checkbox"

    name="directory" title="Include me in congregation directory" 

    checked="checked" id="field_directory"  /&gt;

 

The SimpleTest test contains this:

 

    $this-&gt;setFieldByName('directory', 'on');

 

But the test failed to check the checkbox.

 

Is 'on' not the right value to use? I've tried true, 1, -1, 'checked',
'selected', you name it!

 

Thanks in advance for any help!

 

Margy Levine Young, Systems Analyst

UUA Information Technology Staff Group

myoung-5IfnEjJzJ3M&lt; at &gt;public.gmane.org, 802-989-3371

"We need not think alike to love alike." -- David Ferenc

 

 

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two</description>
    <dc:creator>Margy Levine Young</dc:creator>
    <dc:date>2008-08-22T12:38:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2742">
    <title>Re: "Mocking" internally calledfunctions/classes</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2742</link>
    <description>Hi,

It's not possible to override PHP's internal functions (or any global 
functions) except perhaps with the help of RunKit.

In terms of providing a mock version of Class_C, I'd suggest using a 
little dependency lookup as a the path of least resistance if you need 
to retrofit this without too much modification.  A registry would be the 
simplest way to achieve this.

Cheers,

Chris


Kyohere Luke wrote:


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Chris Corbyn</dc:creator>
    <dc:date>2008-08-22T04:30:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2741">
    <title>"Mocking" internally called functions/classes</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2741</link>
    <description>Hi,

here's the scenario:

I'm trying to test Class_A::Method_B(..). Method_B internally calls
Class_C::Method_D() - which takes a long time, and is accessed from the
global/autoload mechanism of the application. I'd like to skip this call,
since it's irrelevant to my tests.

Aside from re-designing my class/method to read in Class_C as one of it's
arguments, or else creating a dummy Class_C, and loading it before the real
one is loaded, is there a way to achieve this with Mocks?

Secondly, is there a way to prevent the class I'm trying to test from
calling such mundane php functions like file_exists(), etc? Because in such
a case, I have to design my test to create/delete files from the file system
and so on.

Thanks!

Luke

</description>
    <dc:creator>Kyohere Luke</dc:creator>
    <dc:date>2008-08-22T03:57:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2740">
    <title>Re: How to expect an exception</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2740</link>
    <description>Nice, let me try that.

On Wed, Aug 20, 2008 at 8:17 PM, Marcus Baker &lt;marcus-7W5qqZe0q7KOFMEK3gwZYA&lt; at &gt;public.gmane.org&gt;wrote:




</description>
    <dc:creator>Kyohere Luke</dc:creator>
    <dc:date>2008-08-20T20:23:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2739">
    <title>Re: Mocks: How to use regular expressions totest the arguments with expectOnce()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2739</link>
    <description>Great, thanks ...

On Wed, Aug 20, 2008 at 7:47 PM, Jason Sweat &lt;jsweat_php-/E1597aS9LQAvxtiuMwx3w&lt; at &gt;public.gmane.org&gt; wrote:




</description>
    <dc:creator>Kyohere Luke</dc:creator>
    <dc:date>2008-08-20T20:22:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2738">
    <title>Re: How to expect an exception</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2738</link>
    <description>Hi...

Kyohere Luke wrote:

$this-&gt;expectException('TheExceptionClass');
// The code that throws...


yours, Marcus

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Marcus Baker</dc:creator>
    <dc:date>2008-08-20T17:17:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2737">
    <title>Re: How to expect an exception</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2737</link>
    <description>----- Original Message ----

From: Kyohere Luke &lt;pr0f3t-Re5JQEeQqe8AvxtiuMwx3w&lt; at &gt;public.gmane.org&gt;
To: "Help, advice,  bugs and workarounds" &lt;simpletest-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org&gt;
Sent: Wednesday, August 20, 2008 10:54:35 AM
Subject: [Simpletest-support] How to expect an exception

I want to check that a certain function throws an exception of a certain
kind. How do I do this?

Hi Luke,

Try:

    $this-&gt;assertIsA(your_function(), 'expectedType');

Regards,
Jason



      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Jason Sweat</dc:creator>
    <dc:date>2008-08-20T17:01:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2736">
    <title>Re: Mocks: How to use regular expressions totest the arguments with expectOnce()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2736</link>
    <description>

----- Original Message ----
From: Kyohere Luke &lt;pr0f3t-Re5JQEeQqe8AvxtiuMwx3w&lt; at &gt;public.gmane.org&gt;
To: "Help, advice,  bugs and workarounds" &lt;simpletest-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org&gt;
Sent: Wednesday, August 20, 2008 10:48:15 AM
Subject: [Simpletest-support] Mocks: How to use regular expressions to test the arguments with expectOnce()


$form-&gt;expectOnce('addElement', array('html', '*ERROR 123*');

How would I do this?


Hi Luke,
Try:

$form-&gt;expectOnce('addElement', 
    array('html', new WantedPatternExpectation('/ERROR 123/'));

Regards,
Jason


      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Jason Sweat</dc:creator>
    <dc:date>2008-08-20T16:47:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2735">
    <title>How to expect an exception</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2735</link>
    <description>I want to check that a certain function throws an exception of a certain
kind. How do I do this?

Thanks.

Luke
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Kyohere Luke</dc:creator>
    <dc:date>2008-08-20T15:54:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2734">
    <title>Mocks: How to use regular expressions to testthe arguments with expectOnce()</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2734</link>
    <description>I would like to use expectOnce(...) but one of the arguments will be a long
string, which will include an Error Code that I would like to test for.

e.g. if the function call I want to set for would be something like

$form-&gt;addElement('html', '&lt;font color="red"&gt;&lt;b&gt;ERROR CODE: ERROR
MESSAGE&lt;/b&gt;&lt;/font&gt;');

where ERROR CODE is set by the calling function.

How do I test that ERROR CODE is equal to 123, for example. I've already
created a Mock of the $form object, and want to do something like

$form-&gt;expectOnce('addElement', array('html', '*ERROR 123*');

How would I do this?

Thanks.

Luke
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Kyohere Luke</dc:creator>
    <dc:date>2008-08-20T15:48:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2733">
    <title>Re: Using test libraries/classes</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2733</link>
    <description>On Mon, 18 Aug 2008 22:17:40 +0100
Marcus Baker &lt;marcus-7W5qqZe0q7KOFMEK3gwZYA&lt; at &gt;public.gmane.org&gt; wrote:


I've recently been trying out an idea for test case decorators. See
"Decorating Test Cases" in
http://aperiplus.sourceforge.net/AperiTestCase.php. Feel free to pinch
any good ideas or alternatively avoid repeating my bad ones. 

__call() forwards messages to a decorator stack and hence
decorator methods magically appear as test case methods. Aggregated
decorator objects can be mixed 'n matched in any combinations.

I think some built-in sanity checks will be necessary to make this
usable. For example, an exception is thrown if two different decorators
both try to add a foo() to the test case.

This has been working successfully but I haven't been using it for
long and may not have discovered all the problems.


Noel

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applicati</description>
    <dc:creator>Noel Darlow</dc:creator>
    <dc:date>2008-08-19T13:38:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2732">
    <title>Re: Using test libraries/classes</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2732</link>
    <description>

Marcus,

Thanks for your time... I thought it should work, I was starting to feel really 
dumb! Here is the code I used, I actually tried this when I tried refactoring, 
since that attempt failed I went to a simple example to see if that would work 
when it didn't I posted.

Below is the code, it's as small as I could make it and represent what I was 
trying to do.  I need to read the second part of your message to see how that 
will help, as that might also help with my testing.

1. fossWebTestCase.php
&lt;?php

if (!defined('SIMPLE_TEST'))
   define('SIMPLE_TEST', '/usr/local/simpletest/');

/* simpletest includes */
require_once SIMPLE_TEST . 'unit_tester.php';
require_once SIMPLE_TEST . 'reporter.php';
require_once SIMPLE_TEST . 'web_tester.php';

class fossWebTestCase extends WebTestCase
{
   public $mybrowser;
   public $debug;

   public function funcTrue() { return(TRUE); }

   public function funcFalse() { return(FALSE); }

   public function someTest()
   {
     print "starting someTest\n";
     if(</description>
    <dc:creator>Mark Donohoe</dc:creator>
    <dc:date>2008-08-18T23:05:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.php.simpletest.general/2731">
    <title>Re: problem with simpletest on prepend</title>
    <link>http://permalink.gmane.org/gmane.comp.php.simpletest.general/2731</link>
    <description>Hi...

kailash vyas wrote:

I need to test this myself, and work pressure means I haven't yet had a
chance. Do you have a small test case and prepend that you know fails. I
could then just run it immediately, which means I could have a crack at
it during a lunch break.


yours, Marcus

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Marcus Baker</dc:creator>
    <dc:date>2008-08-18T21:21:40</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.comp.php.simpletest.general">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.php.simpletest.general</link>
  </textinput>
</rdf:RDF>
