Onsite training

Bring our trainers team onsite to train your employees.

Learn more


PHP

Advanced Testing with PHPUnit

Learn several advanced PHPUnit usages like code coverage analysis or continuous integration with PHPUnit.


This training offers advanced PHPUnit usages like mock objects definition, code coverage analysis or continuous integration implementation.

Coming sessions


Infos Date Language Venue Price  
Infos Sep 10, 2010 French Online 42.00 € Full
  • This session will take place on September 10, 2010 from 9:00 AM to 12:00 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

Infos Oct 1, 2010 French Online 60.00 € Register
  • This session will take place on October 1, 2010 from 9:00 AM to 12:00 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

Infos Oct 1, 2010 English Online 60.00 € Register
  • This session will take place on October 1, 2010 from 9:00 AM to 12:00 PM (America/Chicago) and it will be hosted by Jonathan Wage.

Infos Oct 8, 2010 French Online 60.00 € Register
  • This session will take place on October 8, 2010 from 9:00 AM to 12:00 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

Infos Oct 22, 2010 English Online 60.00 € Register
  • This session will take place on October 22, 2010 from 9:00 AM to 12:00 PM (America/Chicago) and it will be hosted by Jonathan Wage.

Infos Nov 5, 2010 French Online 60.00 € Register
  • This session will take place on November 5, 2010 from 9:00 AM to 12:00 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

Infos Nov 19, 2010 French Online 60.00 € Register
  • This session will take place on November 19, 2010 from 9:00 AM to 12:00 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

Infos Nov 25, 2010 English Online 60.00 € Register
  • This session will take place on November 25, 2010 from 9:00 AM to 12:00 PM (America/Chicago) and it will be hosted by Jonathan Wage.

Infos Dec 3, 2010 French Online 60.00 € Register
  • This session will take place on December 3, 2010 from 9:00 AM to 12:00 PM (Europe/Paris) and it will be hosted by Hugo Hamon.

Infos Dec 16, 2010 English Online 60.00 € Register
  • This session will take place on December 16, 2010 from 9:00 AM to 12:00 PM (America/Chicago) and it will be hosted by Jonathan Wage.


Goals


  • In 3 hours, you will learn how to your code quality thanks to code coverage analysis, test driven development and continuous integration tools like PHPUnderControl

Program

Download the program as PDF

Introduction to unit test

  • What are unit tests?
  • Pros and cons
  • The FIRST rule

Introduction to PHP Unit

  • Introduction to PHP Unit
  • Open Source PHP projects use PHP Unit
  • IDEs integration
  • PHPUnit installation from PEAR
  • Lab: Install PHPUnit with PEAR
    • Code coverage analysis

      • Understanding the code coverage concept
      • Check XDebug extension is installed on the web server
      • Generate a complete code coverage report from the command line interface
      • Analyzing and understanding generated reports and statistics
      • Understanding and using the special @covers annotation
      • Ignore code blocks from coverage process thanks to @codeCoverageIgnore(Start|End) annotation
      • Lab: Implement new methods and their tests to validate the code coverage rate
        • Data providers and fixtures

          • Understanding the data providers and fixtures concepts
          • Create a new data provider method to run a test with several values
          • Lab: implement a data provider method to test a method's edge cases

          Mock objects

          • Discovering mock objects
          • Creating mock objects with PHPUnit
          • Test data model coupled to mock objects
          • Check code coverage rate thanks to advanced unit tests
          • Lab: implement mock objects to simulate real objects' behaviors

          Results exports

          • Export results as XML
          • Export results as JSON
          • Export results as TAP
          • Check code coverage rate thanks to advanced unit tests
          • Lab: export results as XML, JSON and TAP

          Continuous integration tools

          • Discovering continuous integration
          • Installing CruiseControl and phpUnderControl thanks to PEAR
          • Initializing a new continuous integration project for CruiseControl
          • Discovering the CruiseControl's build.xml file
          • Discovering the CruiseControl's config.xml file
          • Using phpUnderControl to ease the creation of a new CruiseControl's project
          • Lab: install and configure phpUnderControl to make builds of the code

Session details


Price

Starts at 50.00 €

Audience

PHP Developpers

Duration

3 hours

Training type

Elearning

Topics

Unit testing, best practices, PHPUnit, installation, assertions, code coverage, statistics analysis, continuous integration

Pre-requisites

PHPUnit basics


For further information

+33 1 40 99 81 09

We remain at your disposal for further information.
Contact us