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 | |
|---|---|---|---|---|---|
|
Sep 10, 2010 | French | Online | 42.00 € | |
|
|||||
|
Oct 1, 2010 | French | Online | 60.00 € | Register |
|
|||||
|
Oct 1, 2010 | English | Online | 60.00 € | Register |
|
|||||
|
Oct 8, 2010 | French | Online | 60.00 € | Register |
|
|||||
|
Oct 22, 2010 | English | Online | 60.00 € | Register |
|
|||||
|
Nov 5, 2010 | French | Online | 60.00 € | Register |
|
|||||
|
Nov 19, 2010 | French | Online | 60.00 € | Register |
|
|||||
|
Nov 25, 2010 | English | Online | 60.00 € | Register |
|
|||||
|
Dec 3, 2010 | French | Online | 60.00 € | Register |
|
|||||
|
Dec 16, 2010 | English | Online | 60.00 € | Register |
|
|||||
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 PDFIntroduction 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
- 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
@coversannotation - 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
- 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
- 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
- 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
- Discovering continuous integration
- Installing CruiseControl and phpUnderControl thanks to PEAR
- Initializing a new continuous integration project for CruiseControl
- Discovering the CruiseControl's
build.xmlfile - Discovering the CruiseControl's
config.xmlfile - Using phpUnderControl to ease the creation of a new CruiseControl's project
- Lab: install and configure phpUnderControl to make builds of the code
Code coverage analysis
Data providers and fixtures
Mock objects
Results exports
Continuous integration tools
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


