<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Patrick&#039;s playground &#187; PHPUnit</title>
	<atom:link href="http://www.vankouteren.eu/blog/tag/phpunit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vankouteren.eu/blog</link>
	<description>Random thoughts, problems and solutions</description>
	<lastBuildDate>Sun, 29 Jan 2012 07:53:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Developing using WampServer 2: additions</title>
		<link>http://www.vankouteren.eu/blog/2009/12/developing-using-wampserver-2-additions/</link>
		<comments>http://www.vankouteren.eu/blog/2009/12/developing-using-wampserver-2-additions/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 13:42:38 +0000</pubDate>
		<dc:creator>Patrick van Kouteren</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[PHPUnit]]></category>
		<category><![CDATA[WampServer]]></category>

		<guid isPermaLink="false">http://www.vankouteren.eu/blog/?p=175</guid>
		<description><![CDATA[WampServer 2.0 is a nice tool to help you develop a new site on your local computer. However, you'll probably need more packages/libraries than those included with WampServer. This post is about installing extra common features which are mostly present at hosting servers, but not (directly) on WampServer. PHPUnit One of the features which I [...]]]></description>
			<content:encoded><![CDATA[<p><a title="WampServer 2.0" href="http://www.wampserver.com/en/" target="_blank">WampServer 2.0</a> is a nice tool to help you develop a new site on your local computer. However, you'll probably need more packages/libraries than those included with WampServer. This post is about installing extra common features which are mostly present at hosting servers, but not (directly) on WampServer.</p>
<p><span id="more-175"></span></p>
<p><strong>PHPUnit</strong></p>
<p>One of the features which I need when starting a new project is a Unittest framework. The two most common are <a title="SimpleTest" href="http://www.simpletest.org/" target="_blank">SimpleTest</a> and <a title="PHPUnit" href="http://www.phpunit.de/" target="_blank">PHPUnit</a>. SimpleTest can be downloaded and used right away. The <a title="PHPUnit manual" href="http://www.phpunit.de/manual/current/en/installation.html" target="_blank">PHPUnit manual</a> advises to use PEAR to install PHPUnit. <a title="Install PEAR and PHPUnit" href="http://jsdoodnauth.wordpress.com/2008/11/05/installing-wamp-and-phpunit-on-windows/" target="_blank">Joshua Doodnauth</a> explains how to activate PEAR and how to install PHPUnit on WampServer. However, as I was running WampServer 2.0i with PHP 5.3, the file go-pear.phar in the PEAR subdirectory was not working correctly. The solution to this is presented <a title="Install PEAR and PHPUnit on WampServer 2.0 with PHP 5.3" href="http://blog.pear.php.net/2009/07/01/php-53-windows-and-pear/" target="_blank">here</a>. By executing the command</p>
<p><code>php -d phar.require_hash=0 go-pear.phar</code></p>
<p>the problem is solved and PEAR is installed.</p>
<p>After that however, when I tried to get back to Joshua's how-to, the PEAR version was not correct. <a title="Update PEAR" href="http://www.electricmonk.nl/log/2009/04/12/easy-pear-package-creation/" target="_blank">This site</a> helped me to update PEAR. When PEAR is installed, type</p>
<p><code>pear channel-update pear.php.net</code></p>
<p>in the terminal. This will update the PEAR channel. After that, by typing in</p>
<p><code>pear upgrade PEAR</code></p>
<p>the PEAR installation will be updated. From that point on PHPUnit can be installed as described at Joshua's blog.</p>
<p><strong>Crontab</strong></p>
<p>A feature which I use pretty often is the crontab. It can schedule and execute scripts at particular moments. A crontab is not provided by WampServer. However, there are external solutions available. One such solutions is <a title="nnSoft :: nnCron" href="http://www.nncron.ru/" target="_blank">nnCron of nnSoft</a>. This is a crontab which can be installed by executing the installer file. The LITE (free) version already provides the desired functionality. The way it works is pretty simple: in the install directory there are batch files startcron.bat and stopcron.bat which allow to start the crontab and stop it. The file cron.tab contains the <a title="Crontab lines" href="http://www.willmaster.com/library/web-development/using_cron.php" target="_blank">crontab lines</a>.</p>
<p>N.B. Using WampServer and this Crontab, you can write automated tasks in PHP for executing tasks on your local machine. (Nice!).</p>
<p><strong>Mootools</strong></p>
<p>Today I was unpleasantly surprised that Mootools doesn't work on WampServer. I tried various demo's of AJAX calls, but none of them worked. When I tried one on an online web server it worked directly. So far I haven't been able to find topics about this problem, so any help is appreciated!'</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vankouteren.eu/blog/2009/12/developing-using-wampserver-2-additions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

