PHPackages                             yorus/behat-context - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. yorus/behat-context

ActiveLibrary[Testing &amp; Quality](/categories/testing)

yorus/behat-context
===================

Provide some useful behat contexts

01PHP

Since May 20Pushed 2y agoCompare

[ Source](https://github.com/YoRusConsulting/behat-context)[ Packagist](https://packagist.org/packages/yorus/behat-context)[ RSS](/packages/yorus-behat-context/feed)WikiDiscussions main Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

YoRus Behat Contexts
====================

[](#yorus-behat-contexts)

Provide some simple behat contexts

```
default:
  suites:
    default:
      contexts:
        - YoRus\BehatContext\AmqpContext
            transports:
                # I intentionally did not use syntax %env()% because BEHAT doesn't fully
                #support this case since Behat and Symfony kernel are not the sames.
                async_internal: "env(MESSENGER_TRANSPORT_ASYNC_INTERNAL_DSN)"
                my_second_queue: "DIRECT_DSN"
            # you can define your own Adapter, it musts implements \YoRus\BehatContexts\AmqpAdapter\AdapterInterface;
            # adapterClass: \YoRus\BehatContexts\AmqpAdapter\SymfonyMessengerAdapter
            # Create queues if they don't exist.
            # setupQueuesAutomatically: 1
        - YoRus\BehatContext\FidryAliceFixturesContext
            # optional
            # default is %kernel.project_dir%/tests/fixtures
            # basepath: /var/www/....
        - YoRus\BehatContext\DoctrineContext
        - YoRus\BehatContext\RestApiContext
        - YoRus\BehatContext\DoctrineORMSchemaReloadContext

      paths:
        - tests/Features

  extensions:
    YoRus\BehatContext\App\Extension\BehatContextExtension:
        jwt_login:
            ilona:
                resource: /login_endpoint
                username: username@dummy.com
                password: Pass!@word1

```

AmqpContext
-----------

[](#amqpcontext)

If feature/scenario has tag @amqp, it'll automatically remove messages in all queues defined on context.

FidryAliceFixturesContext
-------------------------

[](#fidryalicefixturescontext)

Needs [AliceDataFixtures](https://github.com/theofidry/AliceDataFixtures) and its bundle to be installed.

Configure the service as the following:

```
    YoRus\BehatContext\FidryAliceFixturesContext:
        arguments:
            - '@doctrine.orm.entity_manager'
            - '@fidry_alice_data_fixtures.loader.doctrine'
            - %kernel.project_dir%
            - "tests/Fixtures"

```

DoctrineORMSchemaReloadContext
------------------------------

[](#doctrineormschemareloadcontext)

Needs \[DoctrineBundle\] to be installed.

If feature/scenario has tag @database, it'll automatically delete/create doctrine schema for all managers.

You have to create database before by yourself.

BehatContextExtension
---------------------

[](#behatcontextextension)

Provide some useful functions to login with JWT.

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31069421?v=4)[Yoann Rousseau](/maintainers/rousseauyoann)[@rousseauyoann](https://github.com/rousseauyoann)

---

Top Contributors

[![rousseauyoann](https://avatars.githubusercontent.com/u/31069421?v=4)](https://github.com/rousseauyoann "rousseauyoann (6 commits)")

### Embed Badge

![Health badge](/badges/yorus-behat-context/health.svg)

```
[![Health](https://phpackages.com/badges/yorus-behat-context/health.svg)](https://phpackages.com/packages/yorus-behat-context)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
