<?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>Fri, 24 May 2013 06:45:00 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Codeception.com: Specification or Testing: The Comparison of Behat and Codeception]]></title>
      <guid>http://www.phpdeveloper.org/news/19560</guid>
      <link>http://www.phpdeveloper.org/news/19560</link>
      <description><![CDATA[<p>
On the Codeception site today there's a new post that <a href="http://codeception.com/05-06-2013/specification-testing-coparison.html">compares their tool, Behat and PHPUnit</a> for testing your applications.
</p>
<blockquote>
This is guest post by <a href="https://github.com/Ragazzo">Ragazzo</a>. He uses Behat as well as Codeception for making his project better. He was often asked to do a comparison between Codeception, Behat, and PhpUnit. In this post he explains the commons and different parts of this products.
</blockquote>
<p>
The author talks some about the difference between functional/acceptance tests and how they fit in with behavior driven development. He includes some examples of Behat test formats (Gherkin) and how it can be used for both the functional and acceptance side of things. He also talks some about why he prefers Codeception over Behat(+Mink) for his testing. A sample Codeception test is included, showing a login form check.
</p>
Link: http://codeception.com/05-06-2013/specification-testing-coparison.html]]></description>
      <pubDate>Wed, 08 May 2013 09:28:34 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Ruling the Swarm (of Tests) with Codeception]]></title>
      <guid>http://www.phpdeveloper.org/news/19330</guid>
      <link>http://www.phpdeveloper.org/news/19330</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial posted showing you how to <a href="http://phpmaster.com/ruling-the-swarm-of-tests-with-codeception/">use the Codeception testing tool</a> to perform some acceptance/functional testing of your application.
</p>
<blockquote>
What happens if you have more tests then zergs in the swarm? Really much more. You should find a way to control and manage them. In this article I'll share some hints and best practices you may use writing acceptance tests. I'll use Codeception testing framework to illustrate the best practices, but surely, they can be ported to any acceptance framework you use for testing.
</blockquote>
<p>
He introduces the <a href="http://codeception.com/">Codeception</a> tool and some of the features it includes. He recommends using it to coordinate all of your testing as it can handle PHPUnit and Selenium tests as well as generate its own code coverage reports. He includes some code showing a basic test, making a request to a page, checking for contents and clicking on some links. He also shares a few design patterns using the tool - Page Object and Controller test examples.
</p>]]></description>
      <pubDate>Tue, 19 Mar 2013 09:15:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Web Builder Zone: Zend_Test for Acceptance TDD]]></title>
      <guid>http://www.phpdeveloper.org/news/14552</guid>
      <link>http://www.phpdeveloper.org/news/14552</link>
      <description><![CDATA[<p>
On the Web Builder Zone (of <a href="http://dzone.com">DZone</a>) <i>Giorgio Sironi</i> has posted an article looking at the <a href="http://framework.zend.com/manual/en/zend.test.html">Zend_Test</a> component of the Zend Framework and how to use it for <a href="http://css.dzone.com/news/acceptance-test-driven">acceptance test-driven development</a>.
</p>
<blockquote>
Acceptance Test-Driven Development is an Agile technique that extends the test-first approach to the development of the front end of an application. The mechanics of Acceptance TDD are clear: first you write a test which defines the goal of your development, which is basically the feature you're adding to your application. As with all TDD variants, this test must fail.
</blockquote>
<p>
With the help of the Zend_Test component, your tests can execute through the full MVC stact of your application (including views) to check to see if the resulting content matches certain criteria. He includes a few code examples showing content searching (contains), validating the query string and checking for a redirect.
</p>]]></description>
      <pubDate>Tue, 25 May 2010 09:29:51 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Acceptance Testing of Web Applications with PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/8137</guid>
      <link>http://www.phpdeveloper.org/news/8137</link>
      <description><![CDATA[<p>
From the Zend Developer Zone, there's a <a href="http://devzone.zend.com/article/2242-Acceptance-Testing-of-Web-Applications-with-PHP">tutorial covering acceptance testing</a> of web applications, specifically using PHPUnit and Selenium.
</p>
<blockquote>
In this article I introduce the topic of Acceptance Testing (aka Functional Testing), something more PHP programmers should be starting to practice. I'm sure many of us are well aware of Unit Testing and even Integration Testing so where does this third wheel come into play for web applications given our growing obsession with Web 2.0 and AJAX and how does it differ from the former two practices? Below I'll explain this.
</blockquote>
<p>
They <a href="http://devzone.zend.com/article/2242-Acceptance-Testing-of-Web-Applications-with-PHP">start by asking</a> "Why acceptance testing?" at all with an answer of "it's not about isolated testing, but testing as a whole". The rest of the article is broken up into several parts:
<p>
<ul>
<li>Of User Stories and Acceptance Tests
<li>The Iteration Plan
<li>Preparing For Acceptance Testing (setting up PHPUnit and Selenium)
<li>Writing And Running The Acceptance Tests
<li>How to run the tests
</ul>
<p>
In <a href="http://devzone.zend.com/article/2242-Acceptance-Testing-of-Web-Applications-with-PHP">their example</a> they show how to validate that a login on the site works as expected (including interacting with a form on the page).
</p>]]></description>
      <pubDate>Wed, 27 Jun 2007 15:45:00 -0500</pubDate>
    </item>
  </channel>
</rss>
