The interface Behat\Behat\Context\SnippetAcceptingContext has been deprecated with message: will be removed in 4.0. Use --snippets-for CLI option instead
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be
removed from the class and what other constant to use instead.
Loading history...
17
18
/**
19
* Service container instance.
20
*
21
* @var ContainerBuilder
22
*/
23
private $container;
24
25
/**
26
* {@inheritdoc}
27
*/
28
public function setContainer(ContainerBuilder $container) {
29
$this->container = $container;
30
}
31
32
/**
33
* {@inheritdoc}
34
*/
35
public function getContainer() {
36
return $this->container;
37
}
38
39
/**
40
* Checks that the given element is of the given type.
41
*
42
* @param NodeElement $element
43
* The element to check.
44
* @param string $type
45
* The expected type.
46
*
47
* @throws ExpectationException
48
* Thrown when the given element is not of the expected type.
49
*/
50
public function assertElementType(NodeElement $element, $type) {
51
if ($element->getTagName() !== $type) {
52
throw new ExpectationException("The element is not a '$type'' field.", $this->getSession());
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.