<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 01:06:41 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Mike Purcell's Blog: PHPUnit - Upgrade - Convert assertType to assertInternalType]]></title>
      <guid>http://www.phpdeveloper.org/news/17982</guid>
      <link>http://www.phpdeveloper.org/news/17982</link>
      <description><![CDATA[<p>
In <a href="http://melikedev.com/2012/05/18/phpunit-upgrade-convert-asserttype-to-assertinternaltype/">this quick post</a> to his blog, <i>Mike Purcell</i> mentions the deprecation of the "assertType" assertion and includes some code you can add to correct the issue in your tests.
</p>
<blockquote>
We recently upgraded phpunit from a very old version to the current 3.6.x version (at time of writing). During the upgrade I noticed that assertType is no longer supported in many of our tests which were testing if something was a string, an array, or an object. So I had to write a quick script to update assertType to assertInternalType and figured I would post it for others if they needed to do the same.
</blockquote>
<p>
The code goes into each of your tests (recursively) and finds the places where the "assertType" assertion is used and replaces it with its newer cousin "assertIntrnalType". 
</p>]]></description>
      <pubDate>Mon, 21 May 2012 09:56:59 -0500</pubDate>
    </item>
  </channel>
</rss>
