/** * Add behaviors relevant when a test is executed * * @param TestInterface $test * @return void */ public function onTestStart(TestInterface $test) { $scope = $test->getScope(); $behavior = new StateBehavior($test); $scope->use($behavior); }