Displaying 1 to 20 from 68 results

DesignPatternsPHP - sample code for several design patterns in PHP

  •    PHP

This is a collection of known design patterns and some sample code how to implement them in PHP. Every pattern has a small list of examples (most of them from Zend Framework, Symfony2 or Doctrine2 as I'm most familiar with this software). I think the problem with patterns is that often people do know them but don't know when to apply which.

mockery - Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework

  •    PHP

Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL). Designed as a drop in alternative to PHPUnit's phpunit-mock-objects library, Mockery is easy to integrate with PHPUnit and can operate alongside phpunit-mock-objects without the World ending. Mockery is released under a New BSD License.

tddd - A Laravel Continuous Integration Package

  •    Vue

TDD Dashboard, is an app (built as a Laravel PHP package) to watch and run all your tests during development. It supports any test framework working on terminal, and comes with some testers (PHPUnit, phpspec, behat, Jest, AVA...) preconfigured, but you can easily add yours, just tell it where the executable is and it's done. It also shows the progress of your tests, let you run a single test or all of them, and open your favorite code editor (PHPStorm, VSCode, Sublime Text, etc.) going right to the failing line of your test. If your test framework generate screenshots, it is also able to show it in the log page, with all the reds and greens you are used to see in your terminal.




PHP-Source-Query - 🐘 PHP library to query servers that implement Source Engine Query protocol

  •    PHP

This class was created to query game server which use the Source query protocol, this includes all source games, and all the games that implement Steamworks. The class also allows you to query servers using RCON although this only works for half-life 1 and source engine games.

phpunit-watcher - A tool to automatically rerun PHPUnit tests when source code changes

  •    PHP

Wouldn't it be great if your PHPUnit tests would be automatically rerun whenever you change some code? This package can do exactly that. This will run the tests and rerun them whenever a file in the app, src or tests directory is modified.


nyancat-phpunit-resultprinter - Nyan Cat result printer for PHPUnit

  •    PHP

Use version ^1.3 to support PHPUnit 4.8+ / 5+. To run the test suite, you need composer.

phpunit-speedtrap - Reports on slow-running tests in your PHPUnit test suite

  •    PHP

SpeedTrap reports on slow-running tests in your PHPUnit test suite right in your console. Many factors affect test execution time. A test not properly isolated from variable latency (database, network, etc.) and even basic load on your test machine will cause test times to fluctuate.

phpunit-snapshots - Snapshot testing for PHPUnit

  •    PHP

This trait allows you to use Jest-like snapshot testing in your PHPUnit tests.It is a very basic trait and is only meant to snapshot JSON-encodable structures, not complex objects and such.

Phexecute - Phexecute - Awesome PHP Code Runner

  •    PHP

Phexecute is browser-based tool to quickly test/run PHP code. It comes with ability to easily check your code with PHP Code_Sniffer, run PHPUnit or SimpleTest tests and more, all inside the browser. Phexecute can dramatically improve development time when something needs to be tested. Extending Phexecute to add your own packages/modules is also extremely easy.

laravel-vue-boilerplate - :elephant: A Laravel 5

  •    PHP

Notice that all the changed data on that website sample, such as password and CRUD actions, won't be stored. The TypeScript code tries to follow the Airbnb JavaScript Style Guide, the linters are already included and configured.

phpunit.el - Emacs mode to phpunit and test command line tool

  •    Emacs

Emacs mode to phpunit and test command line tool

phpunit-injector - Injects services from a PSR-11 dependency injection container to PHPUnit test cases

  •    PHP

Provides a PHPUnit listener to inject services from a PSR-11 dependency injection container to PHPUnit test cases. Services are injected to test cases that implement Zalas\Injector\PHPUnit\TestCase\ServiceContainerTestCase to any property tagged with @inject.

phpunit-documentation-french - French Documentation for PHPUnit

  •    Python

Ce dépôt contient la documentation française de PHPUnit. La documentation est accessible à l'adresse https://phpunit.readthedocs.io/fr/latest/. Si vous souhaitez créer une nouvelle traduction, merci d'ouvrir une issue sur le tracker de la documentation anglaise, indiquant la langue que vous souhaitez traduire. Un dépôt sera créé et ajouté aux traductions disponibles.

mock-webserver - Simple mock web server in PHP for unit testing.

  •    PHP

Simple, easy to use Mock Web Server for PHP unit testing. Gets along simply with PHPUnit and other unit testing frameworks. Unit testing HTTP requests can be difficult, especially in cases where injecting a request library is difficult or not ideal. This helps greatly simplify the process.

docker-compose-wordpress - An example use of the chriszarate/wordpress image for plugin or theme development using Docker Compose

  •    Shell

This is an example repo for how one might wire up Docker Compose with the chriszarate/wordpress image for plugin or theme development. In addition to WP-CLI, PHPUnit, Xdebug, and the WordPress unit testing suite, the docker-compose.yml file adds MariaDB and nginx-proxy to create a complete development environment that starts quickly. Clone or fork this repo.

docker-wordpress - WordPress Docker development with WP-CLI, PHPUnit, Xdebug, and the WordPress unit testing suite

  •    Shell

This image provides WordPress on PHP7. It is based on the official WordPress Docker image but adds WP-CLI and Xdebug, and provides an easy way to run WordPress unit tests with PHPUnit. Most likely, you will want to connect this image to a MySQL / MariaDB container and add your plugin or theme code, allowing you to connect to a development instance of WordPress in a browser. If that's the case, I can recommend my Docker Compose WordPress development repo.