<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 87: Possible Method of mocking core classes like PDO</title><link>https://sourceforge.net/p/simpletest/feature-requests/87/</link><description>Recent changes to 87: Possible Method of mocking core classes like PDO</description><atom:link href="https://sourceforge.net/p/simpletest/feature-requests/87/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 17 Apr 2012 04:24:42 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simpletest/feature-requests/87/feed.rss" rel="self" type="application/rss+xml"/><item><title>Possible Method of mocking core classes like PDO</title><link>https://sourceforge.net/p/simpletest/feature-requests/87/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Using namespaces and eval() I have been able to mock objects (like PDO) that are instantiated inside of methods of the class being tested.&lt;/p&gt;
&lt;p&gt;I have the example code up on my blog.&lt;br /&gt;
&lt;a href="http://chrisgriffing.com/coding/php/2012/04/12/how-to-mock-pdo-and-other-objects/" rel="nofollow"&gt;http://chrisgriffing.com/coding/php/2012/04/12/how-to-mock-pdo-and-other-objects/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I'm sorry if this seems spammy.  Feel free to delete this feature request once someone actively participating in development has seen the technique since it is quite simple.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris Griffing</dc:creator><pubDate>Tue, 17 Apr 2012 04:24:42 -0000</pubDate><guid>https://sourceforge.net06e6608b7a7df2e465f0924235f2ee2bbd4da4a1</guid></item></channel></rss>