Skip to content

Behaviour annotation

Yohan Laborda edited this page May 23, 2021 · 1 revision

Usage @Behaviour

To comply with the @Behaviour annotation rule, we must indicate in the public method the annotation with the test file.

@Behaviour("filePath")

<?php

declare(strict_types=1);

class Service
{
    /**
     * @Behaviour("service.feature")
     */
    public function execute(): void
    {
    }
}
Clone this wiki locally