<?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>Wed, 22 May 2013 02:36:01 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Inviqa techPortal: Functionally Testing You Application Using Mink]]></title>
      <guid>http://www.phpdeveloper.org/news/19538</guid>
      <link>http://www.phpdeveloper.org/news/19538</link>
      <description><![CDATA[<p>
On the Inviqa TechPortal today there'a a new post from <i>Konstantin Kudryashov</i> showing you how to <a href="http://techportal.inviqa.com/2013/05/02/functionally-testing-your-application-using-mink/">use Mink for functional testing</a> (an extension of <a href="http://behat.org">Behat</a>) of you web application.
</p>
<blockquote>
Automated testing is big news these days. There's hardly a PHP conference happening without a talk on testing automation or derivative methodologies. TDD (Test-Driven Development) and BDD (Behaviour Driven Development) are all around us. So why should you care about all this? [...] The more complex an application becomes, the harder it is to be sure that each new feature or bug fix won't break the system, and that decreases your overall confidence in your work as developer. That's exactly the reason why you need automated testing - to be confident that you're not breaking important parts of an application.
</blockquote>
<p>
For his examples he uses a simple <a href="http://silex.sensiolabs.org/">Silex</a>-based application (found <a href="https://github.com/everzet/silex-mink">here on github</a>) that just shows a main page and an "add article" page that returns a preview when submitted. He shows how to get Behat/Mink installed and how to bootstrap PHPUnit to allow you to execute your tests. Also included is a sample test that clicks the "Add Article" link, runs a few checks and fills in some data. The form is submitted and the "preview" page is checked for valid results.
</p>
Link: http://techportal.inviqa.com/2013/05/02/functionally-testing-your-application-using-mink]]></description>
      <pubDate>Thu, 02 May 2013 13:50:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Shashikant Jagtap's Blog: Enjoy 'MinkExtension' for Behat]]></title>
      <guid>http://www.phpdeveloper.org/news/17923</guid>
      <link>http://www.phpdeveloper.org/news/17923</link>
      <description><![CDATA[<p>
In <a href="http://lestbddphp.wordpress.com/2012/05/07/enjoy-minkextension-for-behat/">this new post</a> to his blog <i>Shashikant Jagtap</i> talks about a new extension for <a href="http://behat.org">Behat</a> (the BDD testing tool) that makes working with Mink even easier - <a href="https://github.com/Behat/MinkExtension">MinkExtension</a>.
</p>
<blockquote>
'<a href="https://github.com/Behat/MinkExtension">MinkExtension</a>' has been just released which has additional services for <a href="http://behat.org/">Behat</a>. This extension has 'Mink' instance for your 'FeatureContext' and 'SubContext'. UI testers would be happy now, as they don't need to create Mink instance every time in order to use Mink API's.
</blockquote>
<p>
He points you to <a href="https://github.com/Behat/MinkExtension-example">an example application</a> you can use to follow along. He includes the commands needed to install the dependencies via Composer and get this extension working (note: it requires PHP 5.4 for some of the traits stuff. If you don't want to use that, comment out the "TraitedFeatureContext.php" file). Also included are the commands to execute the tests with a <a href="http://seleniumhq.org/download/">Selenium</a> server and a list of a few handy new things this extension enables.
</p>]]></description>
      <pubDate>Tue, 08 May 2012 10:55:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Shashikant Jagtap's Blog: Adding More Sauce To Behat]]></title>
      <guid>http://www.phpdeveloper.org/news/17862</guid>
      <link>http://www.phpdeveloper.org/news/17862</link>
      <description><![CDATA[<p>
On his "Let's BDD" blog <i>Shashikant Jagtap</i> looks at the integration of <a href="http://lestbddphp.wordpress.com/2012/04/24/adding-more-sauce-to-behat/">Saucelabs and Behat</a> for even more functionality when creating BDD tests.
</p>
<blockquote>
On the occasion of Selenium Conference, I met with <a href="https://twitter.com/#!/noahsussman">Noah Sussman</a> talking about "Selenium In the Enterprise: What Went Right, What Went Wrong (So Far)" and one of his <a href="http://www.slideshare.net/noahsussman/selenium-in-the-enterprise-what-went-right-and-what-went-wrong-so-far-selenium-conf-2012-london">slides</a> indicated that, team using Behat and <a href="http://mink.behat.org/">Mink</a> for the functional testing at <a href="http://www.etsy.com/">Etsy</a>. Noah then introduced me to Laura Beth who setup Behat/Mink and SauceLabs integration. Behat-Sauce configuration by Laura Beth is very easy to use. Now, we will see this in action.
</blockquote>
<p>
<i>Shashikant</i> shows how to clone the github repository for the <a href="https://github.com/Shashi-ibuildings/Behat-Sauce-Demo">behat-suacelabs tool</a> Etsy uses, use Composer to get all of the needed dependencies and a sample set of tests showing a sample set of Scenarios and their matching features (code). You can watch a video of the result <a href="https://saucelabs.com/jobs/9d578e253a614b2abed5d6ecad1b6c5d">here</a>.
</p>]]></description>
      <pubDate>Wed, 25 Apr 2012 08:20:55 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Shashikant Jagtap's Blog: PHPUnit + Behat/Mink + Page Object: The Rockstar Combination of Testing]]></title>
      <guid>http://www.phpdeveloper.org/news/17845</guid>
      <link>http://www.phpdeveloper.org/news/17845</link>
      <description><![CDATA[<p>
Earlier this month <i>Shashikant Jagtap</i> wrote up a post about a powerful combination in testing your applications - a "rockstar" combo of <a href="https://lestbddphp.wordpress.com/2012/04/07/phpunit-behatmink-page-object-the-rockstar-combination-of-testing/">PHPUnit + Behat/Mink + Page Object</a> to give you a great foundation for BDD (behavior-driven) testing.
</p>
<blockquote>
Last month, we had discussion about implementing page object pattern in <a href="https://github.com/Behat/Mink">Behat/Mink</a> framework at <a href="http://www.meetup.com/LondonBehatUsers/">London Behat Users meetup</a>. <a href="http://blog.josephwilk.net/cucumber/page-object-pattern.html">Page object</a> pattern is a cool way to make tests maintainable, reusable and readable. Everyone was interested to know more about Page Object Pattern. In this short tutorial, we will implement Mink and PHPUnit  combination for functional testing. Mink and PHPUnit combined with Pageness (Page Object) can be used for maintainable and readable tests.
</blockquote>
<p>
He assumes that you might not have all the tools needed installed, so he walks you through the setup/install of PHPUnit, the <a href="https://github.com/Shashi-ibuildings/PHPUnit-Mink">PHPUnit-Mink framework</a> and both the <a href="http://sourceforge.net/projects/sahi/">Sahi</a> and <a href="http://seleniumhq.org/download/">Selenium</a> drivers. He includes a basic directory structure for the testing and shows how to create some Page Object classes that extend the default TestCase and make calling the remote resource simple. He also includes the steps needed to execute the tests via PHPUnit.
</p>]]></description>
      <pubDate>Fri, 20 Apr 2012 10:49:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Project: Mink library integration bundle for Symfony2 (for Behat)]]></title>
      <guid>http://www.phpdeveloper.org/news/16231</guid>
      <link>http://www.phpdeveloper.org/news/16231</link>
      <description><![CDATA[<p>
<i>Konstantin Kudryashov</i> has linked to a new tool that's adds BehatMink browser abstraction library for your Symfony2 project as a part of the <a href="http://behat.org">Behat</a> project (a BDD testing tool for PHP).
</p>
<blockquote>
You can now test your Symfony2 applications with PHPUnit and Mink, thanks to brand new MinkBundle.
</blockquote>
<p>
This new tool provides a clean API, support for Symfony2's test.client browser emulator and support for the Goutte and Sahi browser emulators as well. In <a href="https://github.com/Behat/MinkBundle#readme">the README</a> on it's github page, they've provided some sample code snippets that show how to register the namespaces, add it to your application kernel/add the config, enable the GoutteDriver and SahiDriver and, of course, write a first test.
</p>]]></description>
      <pubDate>Thu, 21 Apr 2011 11:44:02 -0500</pubDate>
    </item>
  </channel>
</rss>
