PHPUnit Essentials
This course has been retired. Check out the alternatives below
-
What do you get with a Packt Subscription?
- Instant access to this title and 7,500+ eBooks & Videos
- Constantly updated with 100+ new titles each month
- Breadth and depth in over 1,000+ technologies
-
Installing PHPUnit
- Installing PHPUnit
- Requirements
- Composer – the dependency manager for PHP
- Installing PEAR
- Other installation methods
- Testing the installation
- Summary
-
PHPUnit Support in IDEs
- PHPUnit Support in IDEs
- IDEs and PHPUnit
- Summary
-
Tests and What They're All About
- Tests and What They're All About
- Understanding unit testing
- Anatomy of a PHPUnit test
- The MVC application architecture and tests
- Summary
-
Testing Dependencies and Exceptions
- Testing Dependencies and Exceptions
- Detecting dependencies
- Handling dependencies
- Exceptions are expected
- Summary
-
Running Tests from the Command Line
- Running Tests from the Command Line
- Running tests
- Summary
-
Test Isolation and Interaction
- Test Isolation and Interaction
- Test fixtures
- Global state
- Test dependencies
- Data providers
- Summary
-
Organizing Tests
- Organizing Tests
- The PHPUnit XML configuration file
- Where to store tests
- Using the bootstrap file
- Summary
-
Using Test Doubles
- Using Test Doubles
- Creating test doubles
- Test doubles in action
- Understanding Mockery
- Summary
-
Database Testing
- Database Testing
- Which database to use
- Tests for a database
- DBUnit
- Doctrine 2 ORM and database testing
- Summary
-
Testing APIs
- Testing APIs
- An example of integration testing
- Testing the PayPal API
- Testing the Facebook API
- Testing the Twitter API
- Testing the service-oriented architecture
- Summary
-
Testing Legacy Code
- Testing Legacy Code
- Testing spaghetti code
- Handling dependencies
- Summary
-
Functional Tests in the Web Browser Using Selenium
- Functional Tests in the Web Browser Using Selenium
- Installing Selenium
- Testing in the browser
- Writing Selenium tests
- PHP-SeleniumClient
- Organizing Selenium tests
- Summary
-
Continuous Integration
- Continuous Integration
- Using a Travis CI hosted service
- Using the Jenkins CI server
- Using the Xinc PHP CI server
- Summary
-
PHPUnit Alternatives, Extensions, Relatives, and BDD
- PHPUnit Alternatives, Extensions, Relatives, and BDD
- Unit testing alternatives
- PHPUnit extensions
- Behavior-driven development
- Summary