Some shorthand functions for skipping and focusing tests.

Related tags


Pest Plugin: Shorthands

This repository contains the Pest Plugin Shorthands.

If you want to start testing your application with Pest, visit the main Pest Repository.


The Shorthands Plugin for Pest provides additional functions for skipping and focusing tests. These additional functions are just like the test functions but with a single letter prefix for quick usage.


Install the plugin using Composer:

$ composer require thled/pest-plugin-shorthands --dev


Just add an x prefix on the test function to skip the test. I.e.

xit('should be skipped', function () {
// ...

Shorthands for skipping:

  • xit()
  • xtest()

Same goes for focusing a test by prefixing it with f.

Shorthands for focusing:

  • fit()
  • ftest()


Pest was created by Nuno Maduro under the Sponsorware license. It got open-sourced and is now licensed under the MIT license.

Thomas Le Duc
Thomas Le Duc
Mock built-in PHP functions (e.g. time(), exec() or rand())

PHP-Mock: mocking built-in PHP functions PHP-Mock is a testing library which mocks non deterministic built-in PHP functions like time() or rand(). Thi

null 306 Jun 5, 2021
The modern, simple and intuitive PHP unit testing framework.

atoum PHP version atoum version 5.3 -> 5.6 1.x -> 3.x 7.2 -> 8.x 4.x (current) A simple, modern and intuitive unit testing framework for PHP! Just lik

atoum 1.4k Jun 17, 2021
BDD test framework for PHP

BDD test framework for PHP, inspired by Jasmine and RSpec. Features a familiar syntax, and a watch command to automatically re-run specs during develo

Daniel St. Jules 287 May 4, 2021
The most powerful and flexible mocking framework for PHPUnit / Codeception.

AspectMock AspectMock is not an ordinary PHP mocking framework. With the power of Aspect Oriented programming and the awesome Go-AOP library, AspectMo

Codeception Testing Framework 740 Jun 7, 2021
A PHP library for mocking date and time in tests

ClockMock Slope s.r.l. ClockMock provides a way for mocking the current timestamp used by PHP for \DateTime(Immutable) objects and date/time related f

Slope 23 Jun 1, 2021
:computer: Parallel testing for PHPUnit

ParaTest The objective of ParaTest is to support parallel testing in PHPUnit. Provided you have well-written PHPUnit tests, you can drop paratest in y

null 1.7k Jun 9, 2021
A MySQL engine written in pure PHP

PHP MySQL Engine PHP MySQL Engine is a library for PHP that allows you to test database-driven applications with an in-memory simulation of MySQL 5.6.

Vimeo 445 Jun 19, 2021
Expressive fixtures generator

Alice - Expressive fixtures generator Relying on FakerPHP/Faker, Alice allows you to create a ton of fixtures/fake data for use while developing or te

Nelmio 2.2k Jun 12, 2021
PHP client for Selenium/WebDriver protocol. Previously facebook/php-webdriver

Php-webdriver library is PHP language binding for Selenium WebDriver, which allows you to control web browsers from PHP.

php-webdriver 4.4k Jun 20, 2021
vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.

vfsStream vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with

null 1.3k Jun 7, 2021
:heavy_check_mark: PHP Test Framework for Freedom, Truth, and Justice

Kahlan is a full-featured Unit & BDD test framework a la RSpec/JSpec which uses a describe-it syntax and moves testing in PHP one step forward. Kahlan

Kahlan 1.1k Jun 15, 2021
Highly opinionated mocking framework for PHP 5.3+

Prophecy Prophecy is a highly opinionated yet very powerful and flexible PHP object mocking framework. Though initially it was created to fulfil phpsp

PHPSpec Framework 8k Jun 12, 2021
Full-stack testing PHP framework

Codeception Modern PHP Testing for everyone Codeception is a modern full-stack testing framework for PHP. Inspired by BDD, it provides an absolutely n

Codeception Testing Framework 4.3k Jun 13, 2021