PHPackages                             codetetic/pest-plugin-symfony - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. codetetic/pest-plugin-symfony

ActiveLibrary

codetetic/pest-plugin-symfony
=============================

Pest Symfony Plugin

0.0.1(5mo ago)00MITPHPPHP ^8.2

Since Nov 30Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/codetetic/pest-plugin-symfony)[ Packagist](https://packagist.org/packages/codetetic/pest-plugin-symfony)[ RSS](/packages/codetetic-pest-plugin-symfony/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (67)Versions (3)Used By (0)

Pest Symfony Plugin
===================

[](#pest-symfony-plugin)

This project is a Pest Symfony Plugin that enhances testing capabilities for Symfony applications using Pest.

Prerequisites
-------------

[](#prerequisites)

- PHP 8.2 or higher
- PestPHP 2.36 or higher
- Symfony 6.4 or higher
- Composer

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require --dev codetetic/pest-plugin-symfony
```

Usage
-----

[](#usage)

This plugin provides a set of functions to enhance the Pest testing framework for Symfony applications.

### Setup

[](#setup)

```
// Pest.php

uses(Pest\Symfony\WebTestCase::class)->in('Application');
Pest\Symfony\Web\extend(expect());

uses(Pest\Symfony\KernelTestCase::class)->in('Integration');
Pest\Symfony\Kernel\extend(expect());
```

### Example Tests

[](#example-tests)

Below are some example tests that demonstrate the features of this plugin:

#### Basic Application Example

[](#basic-application-example)

```
