Best of phpunit2024

  1. 1
    Article
    Avatar of lnLaravel News·2y

    How to Build Your First PHP Package

    Learn how to create your first PHP package from scratch using Composer. This guide walks through initializing a Git repository, configuring the composer.json file, setting up autoloading, and adding basic source code. It also covers how to implement and organize tests using Pest PHP and Mockery. Finally, it provides tips for publishing your package on Packagist and automating version updates.

  2. 2
    Article
    Avatar of lnLaravel News·2y

    Configuring Laravel With Additional Environment Files

    Learn how to configure additional environment files in Laravel, use a different environment file in Laravel CLI and PHPUnit CLI, and why .env.testing file is useful for PHPUnit tests.

  3. 3
    Article
    Avatar of lnLaravel News·2y

    Generate Code Coverage in Laravel With PCOV

    Learn how to generate code coverage in Laravel with PCOV, including generating HTML reports and configuring coverage in phpunit.xml. Discover how coverage is determined and how to include nonstandard code paths in coverage reports.