<?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://blog.gmane.org/gmane.comp.php.simpletest.general">
    <title>gmane.comp.php.simpletest.general</title>
    <link>http://blog.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://comments.gmane.org/gmane.comp.php.simpletest.general/2858"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2842"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2835"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2819"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2806"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2805"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2801"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2799"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2790"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2784"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2762"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2761"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2753"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2752"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2751"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2748"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2743"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2741"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2735"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.php.simpletest.general/2734"/>
      </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://comments.gmane.org/gmane.comp.php.simpletest.general/2858">
    <title>Error in PHP Unt test</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2858</link>
    <description>Hi,
 
I have followed all proper steps stated in Read me and all are successfully done but there are no option is coming in eclipse while creating a ner project as sample as stated in Docs.
 
And while i am trying to Run Test Case as Run As Simple test as option started coming
Its giving error
 
Running: 
echo "&lt;?php $path='C:\simpletest_1.0.1.eclipse_0.2.4\plugins';ini_set('include_path', get_include_path().PATH_SEPARATOR . realpath($path));ini_set('html_errors','0');$fullpath = realpath('C:/PHP/workspace/fckEditorSample/fckeditor/test.test.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-&gt;addTestFile($fullpath);$test-&gt;run(new XmlReporter()); ?&gt;" | "C:\Program Files\PHP\php.exe" -q -c "C:\Program Files\PHP\php.ini"
*************
Process returned: 255
Process error:
PHP Warning: include_once(eclipse.php): failed to open stream: No such file or directory in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php on line 1
PHP Stack trace:
PHP 1. {main}() C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php:0
PHP Warning: include_once(): Failed opening 'eclipse.php' for inclusion (include_path='.;C:\php5\pear;C:\simpletest_1.0.1.eclipse_0.2.4\plugins') in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php on line 1
PHP Stack trace:
PHP 1. {main}() C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php:0
PHP Fatal error: Class 'GroupTest' not found in C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php on line 1
PHP Stack trace:
PHP 1. {main}() C:\Documents and Settings\arpit716\Local Settings\Temp\Simpletest14634.php:0

Read error:Read error
[Ljava.lang.StackTraceElement;&lt; at &gt;1220c1b
 
Please find out the problem if any in Installation.Lookin forword for positive responce
 
Thanks
Arpit Agarwal
(+91)9899655375
 
 


      Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
-------------------------------------------------------------------------
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=/
_______________________________________________
Simpletest-support mailing list
Simpletest-support&lt; at &gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/simpletest-support
</description>
    <dc:creator>arpit agarwal</dc:creator>
    <dc:date>2008-12-02T06:27:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2842">
    <title>Mock functions?</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2842</link>
    <description>I find mock functions useful because many times I'm writing code that interfaces
with functions and not other objects.  I found I could mock functions with the
library
 http://code.google.com/p/php-mock-function/
without requiring runkit.  Instead I run my tests each in their own process and
control the include files and it works great.  

The php-mock-function library is very alpha and hasn't taken off.

Anyway, I just want to start a conversation on the subject. What are others 
using?

Reference
http://www.workhabit.com/labs/mock-function-testing-drupal




-------------------------------------------------------------------------
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>Douglas Hubler</dc:creator>
    <dc:date>2008-11-09T01:55:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2835">
    <title>Global variables between tests/setup</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2835</link>
    <description>Hi everyone,

I have a configuration file, which is required_once, and sets a global variable called 'root_path'.

However, when simpletest runs the third test in a test suite, root_path is unitialised. I am certain that root_path does, in fact, get set to something prior to this point, as I have set up a break point at the line which sets root_path (which gets hit).

config.php
-------------
$root_path = 'blah';

and then SimpleTest will load FooUnitTest as part of the 'All' Test Suite

FooUnitTest
---------------
require_once('config.php'); // doesn't get included... config.php is included as part of the Test Prolog
require_once($root_path.'Bar.php'); // fails because the $root_path global variable is unitialised at this stage

I was wondering if SimpleTest changes global variables between unit tests. This is the only explanation of the $root_path variable being unitialised that I can think of, as my code does not explicitly unset it.

If, in fact, SimpleTest *does* unset all of the global variables between unit tests, shouldn't it also reset the state of whether files have been included or not.

After the following line in the 'load' function in test_case.php gets run:

$existing_globals = get_defined_vars();
include_once($test_file);

$existing_globals does not contain the $root_path variable..

?

Taras Diakiw
Software Developer
Practical Law Company 
T: +44 (0) 20 7202 1200 ext 5629 
F: +44 (0) 20 7202 1211 
W: http://www.practicallaw.com


This e-mail from Practical Law Company (http://www.practicallaw.com) is subject to our terms of use (http://www.practicallaw.com/9-103-0884). Information about our companies: Practical Law Company Limited. Registered in England and Wales. Registered Number: 02889191. Registered Office: 19 Hatfields, London SE1 8DJ. Telephone: +44(0)20 7202 1200.  Practical Law Company, Inc. Incorporated in Delaware, USA.  Corporate Office: 747 Third Avenue, 36th Floor, New York, NY 10017. Telephone: +1(646) 562-3400.
-------------------------------------------------------------------------
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>Taras Diakiw</dc:creator>
    <dc:date>2008-10-27T15:06:36</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2819">
    <title>Can simpletest print out the value that causesfailure?</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2819</link>
    <description>Hi all, I'm new to simple test.

I've a ValidationManager that has one function to validate names.

I've written testIsValidName to be:

    function testIsValidName(){


Is this the right way to go about it?

I was thinking of creating an array of names and then using foreach() to run
through each name.
That will save me time from coding so many lines.
But the thing is when there's a failure, I won't know which line, hence
value, causes the failure.

Thanks.
-------------------------------------------------------------------------
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>YC</dc:creator>
    <dc:date>2008-10-17T05:32:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2806">
    <title>Code coverage</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2806</link>
    <description>-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, does anyone have any tips on how to get coverage data out of simpletest?
Tarjei
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI5dlmYVRKCnSvzfIRAqKQAJ4knchkPUS69GSzPOoStNbScKUwUwCgsv0G
bH5HR337pS963RzkzmeAzMQ=
=n6sh
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
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>tarjei</dc:creator>
    <dc:date>2008-10-03T08:35:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2805">
    <title>simpletest.org vs. htmlspecialchars</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2805</link>
    <description>Hi,

Currently, all documentation on simpletest.org is double-encoded, so
-&gt; becomes -&amp;gt; thereby making the code samples rather unreadable.

--
troels

-------------------------------------------------------------------------
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>troels knak-nielsen</dc:creator>
    <dc:date>2008-10-04T14:38:57</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2801">
    <title>MultipleExpectation</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2801</link>
    <description>Hey all...

Is there a reason we don't ship with a MultipleException decorator  
that takes N expectations and passes if they all pass?

-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-10-02T22:10:46</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2799">
    <title>twist testing</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2799</link>
    <description>http://studios.thoughtworks.com/twist-agile-test-automation/writing-tests

*cough*... arbiter ...

-------------------------------------------------------------------------
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>Mark Rickerby</dc:creator>
    <dc:date>2008-09-30T07:20:14</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2790">
    <title>Web form submitting</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2790</link>
    <description>Hi,

I'm probably missing something very obvious, but I can't figure it out.
I'm testing a Web form with SimpleTest (the form currently works well on
the Web), and when I do a $this-&gt;clickSubmit('Envoyer');, I'm getting a
"403 Forbidden" error (You don't have permission to
access /folder/file.php on this server).

That's strange, because if I do a simple get() with the same destination
as the form action URL, I'm getting the page (with an error in the page
content because there is no form data, of course).

I'm suspecting the problem is with the interpretation of the root (/) on
the server. Is it possible to tell SimpleTest to prefix all URLs with
the absolute path, including the domain name?

Claude



-------------------------------------------------------------------------
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>Claude Paroz</dc:creator>
    <dc:date>2008-09-23T18:58:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2784">
    <title>More &lt; at &gt;var phpdoc tags for private variables</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2784</link>
    <description>Hi everyone,

Chris asked on the bugs tracker for &lt; at &gt;var phpdoc tags. On the 
devel-mailing list, Travis answered we were not going to implement this 
feature for a bunch of entirely good reasons (see his answer below).

However whenever I'm in the middle of a debugging session -- again a few 
minutes ago trying to correct a problem with assertNoCookies -- I found 
these Eclipse shortcuts really useful when navigating to the root cause. 
So I'd be tempted to add them anyway. What do you think ?

Yours,
Perrick



-------- Original Request --------
https://sourceforge.net/tracker/index.php?func=detail&amp;aid=2090232&amp;group_id=76550&amp;atid=547455

-------- Original Message --------
Subject: Re: [Simpletest-devel] More &lt; at &gt;var phpdoc tags for private variables
Date: Sun, 31 Aug 2008 12:52:14 -0500
From: Travis Swicegood &lt;development-7H1yRlSFNhtWk0Htik3J/w&lt; at &gt;public.gmane.org&gt;
Reply-To: simpletest-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
To: simpletest-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f&lt; at &gt;public.gmane.org
References: &lt;1220199417531-795659.post-PKuAHvtXa09l57MIdRCFDg&lt; at &gt;public.gmane.org&gt;

Hey Chris;

On Aug 31, 2008, at 11:16 AM, Chris Vogt wrote:


Thanks for the email and the kind words.  I'm sure I speak for the
rest of the team when I say it really makes the work that's gone into
ST worth it when we realize how useful others find it. :-)

That said, we won't be implementing documentation on private
attributes or methods as those are not meant to be used by other
developers.  There are a few problems with documented private methods:

* It encourages use by third-party developers
* It adds to the overhead of internal refactoring (not just the code
has to change for everything to be current)

For anything that is meant to be used directly, we do try to keep the
docblock tags as up-to-date as possible, but private variables aren't
meant to be directly accessed, so we want to make you work for them if
you're going to use them :-)

-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>Perrick Penet</dc:creator>
    <dc:date>2008-09-11T19:31:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2762">
    <title>Where is the dom tester?</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2762</link>
    <description>In the 1.0.1 docs, there is a section called DomTestCase, but no 
DomTestCase class, just CssSelector and CssSelectorExpectation. In 
simpletest_1.0.1.tar.gz 
&lt;http://downloads.sourceforge.net/simpletest/simpletest_1.0.1.tar.gz?modtime=1207619754&amp;big_mirror=0&gt;, 
there is no DomTestCase, no CssSelector and no CssSelectorExpectation.

Can someone explain this?

-------------------------------------------------------------------------
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>Dagfinn Reiersøl</dc:creator>
    <dc:date>2008-09-08T09:14:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2761">
    <title>Deleting a cookie</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2761</link>
    <description>Hi everyone,

How do you delete a particular cookie? I am aware that you can set ignoreCookies, but this is unsuitable as:
 * It can't (AFAIK) be reversed
 * You can't specify that you want to receive but not send cookies
 * It will ignore ALL cookies (I wish to only ignore a particular cookie)

The context of my question is that I'm implementing single sign on for a forum. When a user logs out of their account, it destroys a 'universal' guid cookie, but any other cookies will remain. This is the behaviour I'm trying to simulate.

Thanks

Taras

Thanks

Taras Diakiw
Software Developer
Practical Law Company 
T: +44 (0) 20 7202 1200 ext 5629 
F: +44 (0) 20 7202 1211 
W: http://www.practicallaw.com


Practical Law Company Limited. Registered in England and Wales. Registered Number: 02889191. Registered Office: 19 Hatfields, London SE1 8DJ. Telephone: +44(0)20 7202 1200. http://www.practicallaw.com. DISCLAIMERS: This e-mail is confidential to the ordinary user of the e-mail address to which it was addressed; it may contain personal views which are not the views of PLC unless specifically stated.  If you have received it in error, please delete it from your system and notify the sender immediately; do not use, copy or disclose the information or otherwise use it or any part of it in any form whatsoever nor act in reliance on it.  All liability for loss or damage caused by viruses is excluded.  PLC uses the MessageLabs SkyScan service to monitor all outgoing and incoming e-mails for virus
 es, prohibited file-type attachments and inappropriate content in accordance with its Information and Communications Systems policy.  You signify your consent to these terms by any further e
 -mail communication.

Save a tree...please don't print this e-mail unless you really need to.
-------------------------------------------------------------------------
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>Taras Diakiw</dc:creator>
    <dc:date>2008-09-03T16:22:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2753">
    <title>Forcing a mock to throw an exception</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2753</link>
    <description>I'm looking for a way to make my mock object throw an exception. I want to
test that my class under test catches and handles any thrown exceptions
correctly.  I want to add a call to my mock object similar to:

$this-&gt;mymock-&gt;setReturnValue('doomedmethod', new Exception('thanks'));

Or even better:
$this-&gt;mymock-&gt;expectAndThrow('doomedmethod', new Exception('thanks'));

Any advice on whether this exists in simpletest? If not, is there any other
way to test my classes exception handling logic?

Thanks,

Todd

</description>
    <dc:creator>todd runstein</dc:creator>
    <dc:date>2008-09-02T20:41:48</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2752">
    <title>assertNoCookie</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2752</link>
    <description>Hi everyone,

I'm trying to use assertNoCookie: it seems simple enough to use, but I've been getting unexpected results. In particular, doing the following (inside a WebTestCase of course):

$this-&gt;assertNoCookie('arandomstringl;1jk5ljk15ljkldjasfljkasglajkgag')

fails (?!)

however, calling $this-&gt;getCookie('theSameStringAsAbove') returns 'null'.

Is this a bug, or am I missing something really obvious?

Thanks

Taras

Practical Law Company Limited. Registered in England and Wales. Registered Number: 02889191. Registered Office: 19 Hatfields, London SE1 8DJ. Telephone: +44(0)20 7202 1200. http://www.practicallaw.com. DISCLAIMERS: This e-mail is confidential to the ordinary user of the e-mail address to which it was addressed; it may contain personal views which are not the views of PLC unless specifically stated.  If you have received it in error, please delete it from your system and notify the sender immediately; do not use, copy or disclose the information or otherwise use it or any part of it in any form whatsoever nor act in reliance on it.  All liability for loss or damage caused by viruses is excluded.  PLC uses the MessageLabs SkyScan service to monitor all outgoing and incoming e-mails for virus
 es, prohibited file-type attachments and inappropriate content in accordance with its Information and Communications Systems policy.  You signify your consent to these terms by any further e
 -mail communication.

Save a tree...please don't print this e-mail unless you really need to.

-------------------------------------------------------------------------
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>Taras Diakiw</dc:creator>
    <dc:date>2008-09-02T15:39:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2751">
    <title>Mocks and $this references?</title>
    <link>http://comments.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://comments.gmane.org/gmane.comp.php.simpletest.general/2748">
    <title>sprintf error</title>
    <link>http://comments.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://comments.gmane.org/gmane.comp.php.simpletest.general/2743">
    <title>Setting a checkbox</title>
    <link>http://comments.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 to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/
</description>
    <dc:creator>Margy Levine Young</dc:creator>
    <dc:date>2008-08-22T12:38:06</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.php.simpletest.general/2741">
    <title>"Mocking" internally called functions/classes</title>
    <link>http://comments.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://comments.gmane.org/gmane.comp.php.simpletest.general/2735">
    <title>How to expect an exception</title>
    <link>http://comments.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://comments.gmane.org/gmane.comp.php.simpletest.general/2734">
    <title>Mocks: How to use regular expressions to testthe arguments with expectOnce()</title>
    <link>http://comments.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://comments.gmane.org/gmane.comp.php.simpletest.general/2728">
    <title>Using test libraries/classes</title>
    <link>http://comments.gmane.org/gmane.comp.php.simpletest.general/2728</link>
    <description>Hello,

Have been using ST for about 2-3 months now.  Like it lot, well except for the 
documentation... a great start but then.....I'd like to help fix some of that...

Here is the problem of the week.  I'm sorta new to OO as well, so it could be 
that and not ST.

I'm trying to use Jason's suggestion to extend WebTestCase with my own project 
specific class.  So far so good.  But now my fossologyWebTestCase class is 
getting big with more methods than I want.  I tried to refactor but could not 
get things to work that way....

Specifics I tried:

class fossologyWebTestCase extends WebTestCase {

    function uploadAFile(....) { ... }
    function browseMiniMenu(...) { ....}
    etc....
}

What I would like to do is create a number of 'utility' test classes that can be 
used by the basic unit tests as well as for other higher level functional and 
stress testing.

I tried to factor our things like uploads to an upload class, browse to a browse 
class etc...

I tried

class uploadsTests extends WebTestCase {
   function uploadAFile(....) { ... }
    ....
}

  class browseMenusTests extends WebTestCase {
    function browseMiniMenu(...) { ....}
    ....
}

Then in my runner script:

test = &amp;new TestSuite('Experiment for test libraries');

$test-&gt;addFile('testClasses/uploads.php');
$test-&gt;addFile('testClasses/browseMenus.php');
$test-&gt;addTestFile('testClasses/exfoss.php');

if (TextReporter::inCli())
{
   exit ($test-&gt;run(new TextReporter()) ? 0 : 1);
}
$test-&gt;run(new HtmlReporter());

exfoss.php is a test that tries to use tehe functions uploadAFile and 
browseMiniMenu, but always gets:
Fatal error: Call to undefined method expfoss::uploadAFile() in 
/home/markd/Src/fossology/tests/testClasses/exfoss.php on line xx

I also tried using autorun and extending TestSuite like the example in the 
web_tester docs.  Same result.

I also tried to have the above classes extend fossologyWebTestCase instead of 
WebTestCase, but still get the same failure?

I also tried having my main fossologyWebTestCase require_once uploads.php and 
browseMenu.php and still got the failure above.  Tried it twice, once as a
'extends WebTestCase' and once with extends fossologyWebTestCase and still got 
undefined method error.

All of my 'Tests' extend fossologyWebTestCase.  The above functions 
(uploadAFile) are also tests in that they use assertions and the like to ensure 
what they are doing is correct.  I want methods like uploadAFile to be 
accessible by any test that needs it, but would like them to be in their own 
file at least so that everything doesn't have to be in one class.

What am I missing, how do I do this?  Thanks for your time and help.

</description>
    <dc:creator>Mark Donohoe</dc:creator>
    <dc:date>2008-08-18T20:28:42</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>
