You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I define a BeforeSuite hook using the attribute syntax, the method is never run.
use Behat\Testwork\Hook\Call\BeforeSuite;
[...]
#[BeforeSuite]
public static function beforeSuite(): void
{
echo 'Not run';
}
but when using the annotation syntax it works
/** @BeforeSuite */
public static function beforeSuite(): void
{
echo 'Not run';
}
Maybe this is the expected behaviour but it is counter intuitive as the documentation refers to the Behat\Testwork\Hook\Call\BeforeSuite as the correct class to use to hook before the suite is ran
The text was updated successfully, but these errors were encountered:
Attribute classes for hooks are in the Behat\Hook namespace. But it looks like the attribute reader has not been implemented with the full list of hooks but a partial list.
When I define a BeforeSuite hook using the attribute syntax, the method is never run.
but when using the annotation syntax it works
Maybe this is the expected behaviour but it is counter intuitive as the documentation refers to the Behat\Testwork\Hook\Call\BeforeSuite as the correct class to use to hook before the suite is ran
The text was updated successfully, but these errors were encountered: