Extending PHPUnit Subclass PHPUnit\Framework\TestCase Write custom assertions Implement PHPUnit\Framework\TestListener Subclass PHPUnit_Extensions_TestDecorator Implement PHPUnit_Framework_Test A. Logging Test Results (XML) Code Coverage (XML) Code Coverage (TEXT) 14. Other Uses for Tests Agile Documentation Cross-Team Tests 13. Code Coverage Analysis Software Metrics for Code Coverage Whitelisting Files Ignoring Code Blocks Specifying Covered Methods Edge Cases 12. Testing Practices During Development During Debugging 11. Test Doubles Stubs Mock Objects Prophecy Mocking Traits and Abstract Classes Stubbing and Mocking Web Services Mocking the Filesystem 10. “ Too much Connections” Error? How to handle NULL with Flat XML / CSV Datasets? 9. Test? Am I required to use PDO in my application for the DatabaseĮxtension to work? What can I do, when I get a Run Test, Verify outcome and Teardown Configuration of a PHPUnit Database TestCase Implementing getConnection() Implementing getDataSet() What about the Database Schema (DDL)? Tip: Use your own Abstract Database TestCase Understanding DataSets and DataTables Available Implementations Beware of Foreign Keys Implementing your own DataSets/DataTables Using the Database Connection API Database Assertions API Asserting the Row-Count of a Table Asserting the State of a Table Asserting the Result of a Query Asserting the State of Multiple Tables Frequently Asked Questions Will PHPUnit (re-)create the database schema for each Database Testing Supported Vendors for Database Testing Difficulties in Database Testing The four stages of a database test 1. Incomplete and Skipped Tests Incomplete Tests Skipping Tests Skipping Tests using 8. Risky Tests Useless Tests Unintentionally Covered Code Output During Test Execution Test Execution Timeout Global State Manipulation 7. Organizing Tests Composing a Test Suite Using the Filesystem Composing a Test Suite Using XML Configuration 6. Fixtures More setUp() than tearDown() Variations Sharing Fixture Global State 5. The Command-Line Test Runner Command-Line Options 4. Writing Tests for PHPUnit Test Dependencies Data Providers Testing Exceptions Testing PHP Errors Testing Output Error output Edge cases 3. Installing PHPUnit Requirements PHP Archive (PHAR) Windows Verifying PHPUnit PHAR Releases Composer Optional packages 2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |