<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Testing Framework for PHPUnit3</title>
	<atom:link href="http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/feed/" rel="self" type="application/rss+xml" />
	<link>http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/</link>
	<description>it and development at europe's leading clubbing community</description>
	<pubDate>Thu, 28 Aug 2008 08:47:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: techblog.tilllate.com &#187; So what does ZFTestManager do?</title>
		<link>http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/#comment-2491</link>
		<dc:creator>techblog.tilllate.com &#187; So what does ZFTestManager do?</dc:creator>
		<pubDate>Thu, 07 Jun 2007 15:25:01 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/#comment-2491</guid>
		<description>[...] Recently, I was wondering about a way to simplify unit test management. I finally stumbled over Zend Frameworks Test Manager and promised to report about my experiences. [...]</description>
		<content:encoded><![CDATA[<p>[...] Recently, I was wondering about a way to simplify unit test management. I finally stumbled over Zend Frameworks Test Manager and promised to report about my experiences. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: patrice</title>
		<link>http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/#comment-2485</link>
		<dc:creator>patrice</dc:creator>
		<pubDate>Tue, 22 May 2007 09:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/#comment-2485</guid>
		<description>Voilà, I have now posted the way we do it at local.ch: http://weblog.patrice.ch/articles/2007/05/22/php-testing-with-simpletest</description>
		<content:encoded><![CDATA[<p>Voilà, I have now posted the way we do it at local.ch: <a href="http://weblog.patrice.ch/articles/2007/05/22/php-testing-with-simpletest" rel="nofollow">http://weblog.patrice.ch/articles/2007/05/22/php-testing-with-simpletest</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Testing with SimpleTest</title>
		<link>http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/#comment-2484</link>
		<dc:creator>PHP Testing with SimpleTest</dc:creator>
		<pubDate>Tue, 22 May 2007 09:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/#comment-2484</guid>
		<description>[...] Maarten&#8217;s post at Tillate finally brought the motivation to document the PHP testing approach we use at local.ch. [...]</description>
		<content:encoded><![CDATA[<p>[...] Maarten&#8217;s post at Tillate finally brought the motivation to document the PHP testing approach we use at local.ch. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harry Fuecks</title>
		<link>http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/#comment-2482</link>
		<dc:creator>Harry Fuecks</dc:creator>
		<pubDate>Mon, 21 May 2007 23:33:45 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/#comment-2482</guid>
		<description>The "PHPUnit_MAIN_METHOD" thing looks like it's attempting to be python's

if __name__ == '__main__':
    # do stuff...

Think there is a need for _something_ like so it's easy to execute a single test script on it's own, as well as a whole suite. In SimpleTest that tends to look like;

if (!defined('TEST_RUNNING')) {
    define('TEST_RUNNING', true);
    // run only the tests in this script...
}

For example http://phputf8.cvs.sourceforge.net/phputf8/utf8/tests/cases/utf8_strrev.test.php?view=markup - at the same time I have a "test runner" which uses a similar approach to patrice's - file naming convention to detect tests - http://phputf8.cvs.sourceforge.net/phputf8/utf8/tests/runtests.php?view=markup

Welcome ;)</description>
		<content:encoded><![CDATA[<p>The &#8220;PHPUnit_MAIN_METHOD&#8221; thing looks like it&#8217;s attempting to be python&#8217;s</p>
<p>if __name__ == &#8216;__main__&#8217;:<br />
    # do stuff&#8230;</p>
<p>Think there is a need for _something_ like so it&#8217;s easy to execute a single test script on it&#8217;s own, as well as a whole suite. In SimpleTest that tends to look like;</p>
<p>if (!defined(&#8217;TEST_RUNNING&#8217;)) {<br />
    define(&#8217;TEST_RUNNING&#8217;, true);<br />
    // run only the tests in this script&#8230;<br />
}</p>
<p>For example <a href="http://phputf8.cvs.sourceforge.net/phputf8/utf8/tests/cases/utf8_strrev.test.php?view=markup" rel="nofollow">http://phputf8.cvs.sourceforge.net/phputf8/utf8/tests/cases/utf8_strrev.test.php?view=markup</a> - at the same time I have a &#8220;test runner&#8221; which uses a similar approach to patrice&#8217;s - file naming convention to detect tests - <a href="http://phputf8.cvs.sourceforge.net/phputf8/utf8/tests/runtests.php?view=markup" rel="nofollow">http://phputf8.cvs.sourceforge.net/phputf8/utf8/tests/runtests.php?view=markup</a></p>
<p>Welcome <img src='http://techblog.tilllate.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: patrice</title>
		<link>http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/#comment-2481</link>
		<dc:creator>patrice</dc:creator>
		<pubDate>Mon, 21 May 2007 14:53:29 +0000</pubDate>
		<guid isPermaLink="false">http://techblog.tilllate.com/2007/05/21/testing-framework-for-phpunit3/#comment-2481</guid>
		<description>At local.ch I use a combination of these things with SimpleTest:
* SelectiveReporter
* glob
* addTestFile

The code looks more or less like that:
$test = &#38;new TestSuite('All tests');
foreach (glob($testDir . '/*.php') as $file) {
  $test-&#62;addTestFile($file);
}
$result = $test-&#62;run(new SelectiveReporter(new MyTextReporter(), $onlyCase, $onlyTest));

$onlyCase is a param from the command line for executing only a specific case by the class name. $onlyTest is an additional param for only executing a specific method inside that class.</description>
		<content:encoded><![CDATA[<p>At local.ch I use a combination of these things with SimpleTest:<br />
* SelectiveReporter<br />
* glob<br />
* addTestFile</p>
<p>The code looks more or less like that:<br />
$test = &amp;new TestSuite(&#8217;All tests&#8217;);<br />
foreach (glob($testDir . &#8216;/*.php&#8217;) as $file) {<br />
  $test-&gt;addTestFile($file);<br />
}<br />
$result = $test-&gt;run(new SelectiveReporter(new MyTextReporter(), $onlyCase, $onlyTest));</p>
<p>$onlyCase is a param from the command line for executing only a specific case by the class name. $onlyTest is an additional param for only executing a specific method inside that class.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
