Issues (85)

src/Features/Context/FeatureContext.php (1 issue)

Severity
1
<?php
2
3
namespace Alpha\VisitorTrackingBundle\Features\Context;
4
5
use Behat\Behat\Context\Context;
6
use Behat\Behat\Context\SnippetAcceptingContext;
7
use Behat\Symfony2Extension\Context\KernelDictionary;
8
use Behat\MinkExtension\Context\MinkContext;
9
10
/**
11
 * Defines application features from the specific context.
12
 */
13
class FeatureContext extends MinkContext implements Context, SnippetAcceptingContext
0 ignored issues
show
Deprecated Code introduced by
The interface Behat\Behat\Context\SnippetAcceptingContext has been deprecated: will be removed in 4.0. Use --snippets-for CLI option instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

13
class FeatureContext extends MinkContext implements Context, /** @scrutinizer ignore-deprecated */ SnippetAcceptingContext

This interface has been deprecated. The supplier of the interface has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.

Loading history...
14
{
15
    use KernelDictionary;
16
17
    /**
18
     * @Given /^the cookie "([^"]*)" has the value "([^"]*)"$/
19
     *
20
     * @param string $name
21
     * @param string $value
22
     */
23
    public function theCookieHasTheValue($name, $value): void
24
    {
25
        $this->getSession()->setCookie($name, $value);
26
    }
27
}
28