<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for markbennett.ca</title>
	<atom:link href="http://markbennett.ca/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://markbennett.ca</link>
	<description>Code, travel, and adventure!</description>
	<lastBuildDate>Sun, 07 Mar 2010 05:47:25 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Notes from Edmonton&#8217;s First Ruby Meetup by Edmonton Notes for 3/6/2010 at MasterMaq&#39;s Blog</title>
		<link>http://markbennett.ca/2010/03/edmontons-first-ruby-meetup/comment-page-1/#comment-12567</link>
		<dc:creator>Edmonton Notes for 3/6/2010 at MasterMaq&#39;s Blog</dc:creator>
		<pubDate>Sun, 07 Mar 2010 05:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://markbennett.ca/?p=338#comment-12567</guid>
		<description>[...] event recaps: Edmonton’s First Ruby Meetup, Edmonton Foodie Meetup 3, and Launch Party Edmonton [...]</description>
		<content:encoded><![CDATA[<p>[...] event recaps: Edmonton’s First Ruby Meetup, Edmonton Foodie Meetup 3, and Launch Party Edmonton [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Notes from Edmonton&#8217;s First Ruby Meetup by Chris</title>
		<link>http://markbennett.ca/2010/03/edmontons-first-ruby-meetup/comment-page-1/#comment-12564</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 03 Mar 2010 22:36:47 +0000</pubDate>
		<guid isPermaLink="false">http://markbennett.ca/?p=338#comment-12564</guid>
		<description>Wish I could&#039;ve been there, but I had some things pop up at last minute.  I am looking forward to the next one.</description>
		<content:encoded><![CDATA[<p>Wish I could&#8217;ve been there, but I had some things pop up at last minute.  I am looking forward to the next one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Notes from Edmonton&#8217;s First Ruby Meetup by Christian</title>
		<link>http://markbennett.ca/2010/03/edmontons-first-ruby-meetup/comment-page-1/#comment-12563</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Wed, 03 Mar 2010 17:51:31 +0000</pubDate>
		<guid isPermaLink="false">http://markbennett.ca/?p=338#comment-12563</guid>
		<description>Really nice to see (and attend) a Ruby meetup in Edmonton. Thanks for all the hard work. 10/10. I&#039;m excited for the next one.</description>
		<content:encoded><![CDATA[<p>Really nice to see (and attend) a Ruby meetup in Edmonton. Thanks for all the hard work. 10/10. I&#8217;m excited for the next one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bringing test driven development to Drupal 5 by markbennett.ca &#187; UPDATE: Bringing test driven development to Drupal 5</title>
		<link>http://markbennett.ca/2009/03/bringing-tdd-to-drupal-5/comment-page-1/#comment-12503</link>
		<dc:creator>markbennett.ca &#187; UPDATE: Bringing test driven development to Drupal 5</dc:creator>
		<pubDate>Sat, 04 Apr 2009 05:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://markbennett.ca/?p=141#comment-12503</guid>
		<description>[...] few days ago I made a post about modifying phpunit_setup.inc to enable test driven development on Drupal 5.  Since then a few things have [...]</description>
		<content:encoded><![CDATA[<p>[...] few days ago I made a post about modifying phpunit_setup.inc to enable test driven development on Drupal 5.  Since then a few things have [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on UPDATE: Bringing test driven development to Drupal 5 by markbennett.ca &#187; Bringing test driven development to Drupal 5</title>
		<link>http://markbennett.ca/2009/04/updated-bringing-tdd-to-drupal-5/comment-page-1/#comment-12501</link>
		<dc:creator>markbennett.ca &#187; Bringing test driven development to Drupal 5</dc:creator>
		<pubDate>Thu, 02 Apr 2009 04:29:33 +0000</pubDate>
		<guid isPermaLink="false">http://markbennett.ca/?p=219#comment-12501</guid>
		<description>[...] UPDATE: Since this post was written phpunit_setup.inc has been moved into the Drupal TDD project. phpunit_setup.inc has also been updated to not require the drupal6_backports.inc file.  Read my post on the changes for the details. [...]</description>
		<content:encoded><![CDATA[<p>[...] UPDATE: Since this post was written phpunit_setup.inc has been moved into the Drupal TDD project. phpunit_setup.inc has also been updated to not require the drupal6_backports.inc file.  Read my post on the changes for the details. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bringing test driven development to Drupal 5 by Mark</title>
		<link>http://markbennett.ca/2009/03/bringing-tdd-to-drupal-5/comment-page-1/#comment-12500</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 01 Apr 2009 00:17:40 +0000</pubDate>
		<guid isPermaLink="false">http://markbennett.ca/?p=141#comment-12500</guid>
		<description>&lt;a href=&quot;#comment-12498&quot; rel=&quot;nofollow&quot;&gt;@pat&lt;/a&gt;

Thanks for comments.  I appreciate your insight into the way that the drupal_install_system() and drupal_install_profile() functions operate.  I agree that the database setup by phpunit_setup.inc should match the production database as closely as possible.

I&#039;ll take a closer look at install.php and see if I can create a function to setup the environment correctly in both Drupal 5 and 6.</description>
		<content:encoded><![CDATA[<p><a href="#comment-12498" rel="nofollow">@pat</a></p>
<p>Thanks for comments.  I appreciate your insight into the way that the drupal_install_system() and drupal_install_profile() functions operate.  I agree that the database setup by phpunit_setup.inc should match the production database as closely as possible.</p>
<p>I&#8217;ll take a closer look at install.php and see if I can create a function to setup the environment correctly in both Drupal 5 and 6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bringing test driven development to Drupal 5 by pat</title>
		<link>http://markbennett.ca/2009/03/bringing-tdd-to-drupal-5/comment-page-1/#comment-12498</link>
		<dc:creator>pat</dc:creator>
		<pubDate>Tue, 31 Mar 2009 18:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://markbennett.ca/?p=141#comment-12498</guid>
		<description>Hi Mark,

THANKS for all of the kind comments in your article and for linking back to my blog. Greatly appreciated! I found some time today to try out your stuff: The first thing I did was to install Drupal 5 and download your “drupal6_backports.inc” and “phpunit_setup_drupal5.inc” files. I followed all of the steps in your article, and was able to reproduce the same problems you did, and then got it all to work by following your instructions… nice job! I’m definitely impressed that you got it all to work without making any changes at all to what I had originally written, except for using db_fetch_array instead of just db_result. One cool thing about what you’ve done is that your unit tests could help you someday when you do have to or want to upgrade from Drupal 5 to Drupal 6. You just remove drupal6_backports.inc, replace Drupal with the newer version and re-run your tests… if anything fails you know you have a problem to look into. If they pass then your application should continue to work. Normally upgrading Drupal can be a nightmare; with a test harness to help you it should be much easier.

As a sanity check I also compared the MySQL schema created by your code vs. a standard Drupal 5 install. If you look at the code in “install.php” in the root folder of Drupal 5, you can see how a Drupal 5 site is normally setup. What I found is that there are three extra tables created by phpunit_setup_drupal5.inc and drupal6_backports.inc that aren’t created by the standard install code in install.php: these tables are “locales_meta,” “locales_source” and “locales_target.” It turned out this difference was caused by phpunit_setup_drupal5.inc passing in “en” to drupal_install_modules(drupal_verify_profile(&#039;default&#039;, &#039;en&#039;)), while during a standard Drupal 5 setup in English this locale value would be null. There were no other major differences between the standard Drupal 5 database and the test Drupal 5 database your code created. Cool!

The one suggestion I have to make things a bit safer and cleaner would be to just emulate what install.php in Drupal 5 does, calling Drupal 5 functions where possible, instead of moving some of the Drupal 6 code back into Drupal 5. For example, instead of calling drupal_install_system() from Drupal 6 and then drupal_install_modules(drupal_verify_profile(&#039;default&#039;, &#039;en&#039;)), you could just call the Drupal 5 drupal_install_profile() function (see install.php around line 88 for where it’s called, and install.inc line 309 for the function).

Let me know what you think and then we can post the updated phpunit_setup.inc in a common place (github). Thanks again!</description>
		<content:encoded><![CDATA[<p>Hi Mark,</p>
<p>THANKS for all of the kind comments in your article and for linking back to my blog. Greatly appreciated! I found some time today to try out your stuff: The first thing I did was to install Drupal 5 and download your “drupal6_backports.inc” and “phpunit_setup_drupal5.inc” files. I followed all of the steps in your article, and was able to reproduce the same problems you did, and then got it all to work by following your instructions… nice job! I’m definitely impressed that you got it all to work without making any changes at all to what I had originally written, except for using db_fetch_array instead of just db_result. One cool thing about what you’ve done is that your unit tests could help you someday when you do have to or want to upgrade from Drupal 5 to Drupal 6. You just remove drupal6_backports.inc, replace Drupal with the newer version and re-run your tests… if anything fails you know you have a problem to look into. If they pass then your application should continue to work. Normally upgrading Drupal can be a nightmare; with a test harness to help you it should be much easier.</p>
<p>As a sanity check I also compared the MySQL schema created by your code vs. a standard Drupal 5 install. If you look at the code in “install.php” in the root folder of Drupal 5, you can see how a Drupal 5 site is normally setup. What I found is that there are three extra tables created by phpunit_setup_drupal5.inc and drupal6_backports.inc that aren’t created by the standard install code in install.php: these tables are “locales_meta,” “locales_source” and “locales_target.” It turned out this difference was caused by phpunit_setup_drupal5.inc passing in “en” to drupal_install_modules(drupal_verify_profile(&#8216;default&#8217;, &#8216;en&#8217;)), while during a standard Drupal 5 setup in English this locale value would be null. There were no other major differences between the standard Drupal 5 database and the test Drupal 5 database your code created. Cool!</p>
<p>The one suggestion I have to make things a bit safer and cleaner would be to just emulate what install.php in Drupal 5 does, calling Drupal 5 functions where possible, instead of moving some of the Drupal 6 code back into Drupal 5. For example, instead of calling drupal_install_system() from Drupal 6 and then drupal_install_modules(drupal_verify_profile(&#8216;default&#8217;, &#8216;en&#8217;)), you could just call the Drupal 5 drupal_install_profile() function (see install.php around line 88 for where it’s called, and install.inc line 309 for the function).</p>
<p>Let me know what you think and then we can post the updated phpunit_setup.inc in a common place (github). Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Rogers WAP/MMS/Emai on Motorola V3 by Michael</title>
		<link>http://markbennett.ca/2008/04/rogers-wapmmsemai-on-motorola-v3/comment-page-1/#comment-12152</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 19 Dec 2008 17:03:14 +0000</pubDate>
		<guid isPermaLink="false">http://markbennett.ca/?p=126#comment-12152</guid>
		<description>i tried this, the internet one worked.. but i can&#039;t get the web session for the MMS one to work.
Service Name: Rogers ( i did that)
Server name: http://mms.gprs.rogers.com ( i did that)
web session name: ( it won&#039;t let me write anything here..)

and whats the media one for?</description>
		<content:encoded><![CDATA[<p>i tried this, the internet one worked.. but i can&#8217;t get the web session for the MMS one to work.<br />
Service Name: Rogers ( i did that)<br />
Server name: <a href="http://mms.gprs.rogers.com" rel="nofollow">http://mms.gprs.rogers.com</a> ( i did that)<br />
web session name: ( it won&#8217;t let me write anything here..)</p>
<p>and whats the media one for?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Things I Don&#8217;t Need: D-Link DAP-1555 Xtreme N Duo High-Definition MediaBridge by Ash Christopher</title>
		<link>http://markbennett.ca/2008/01/things-i-dont-need-d-link-dap-1555-xtreme-n-duo-high-definition-mediabridge/comment-page-1/#comment-8152</link>
		<dc:creator>Ash Christopher</dc:creator>
		<pubDate>Fri, 04 Jan 2008 02:57:44 +0000</pubDate>
		<guid isPermaLink="false">http://markbennett.ca/?p=112#comment-8152</guid>
		<description>Now, if only it would support x264 videos in a .mkv container, then I would be set.</description>
		<content:encoded><![CDATA[<p>Now, if only it would support x264 videos in a .mkv container, then I would be set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on My New Car by Ash</title>
		<link>http://markbennett.ca/2007/02/my-new-car/comment-page-1/#comment-6696</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Mon, 01 Oct 2007 20:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://markbennett.ca/?p=101#comment-6696</guid>
		<description>Mark... new blog posts... stat!</description>
		<content:encoded><![CDATA[<p>Mark&#8230; new blog posts&#8230; stat!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
