package and depencies
This commit is contained in:
@@ -16,9 +16,9 @@ use Symfony\Component\DomCrawler\Crawler;
|
||||
|
||||
final class CrawlerSelectorAttributeValueSame extends Constraint
|
||||
{
|
||||
private $selector;
|
||||
private $attribute;
|
||||
private $expectedText;
|
||||
private string $selector;
|
||||
private string $attribute;
|
||||
private string $expectedText;
|
||||
|
||||
public function __construct(string $selector, string $attribute, string $expectedText)
|
||||
{
|
||||
@@ -27,9 +27,6 @@ final class CrawlerSelectorAttributeValueSame extends Constraint
|
||||
$this->expectedText = $expectedText;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function toString(): string
|
||||
{
|
||||
return sprintf('has a node matching selector "%s" with attribute "%s" of value "%s"', $this->selector, $this->attribute, $this->expectedText);
|
||||
@@ -37,8 +34,6 @@ final class CrawlerSelectorAttributeValueSame extends Constraint
|
||||
|
||||
/**
|
||||
* @param Crawler $crawler
|
||||
*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function matches($crawler): bool
|
||||
{
|
||||
@@ -52,8 +47,6 @@ final class CrawlerSelectorAttributeValueSame extends Constraint
|
||||
|
||||
/**
|
||||
* @param Crawler $crawler
|
||||
*
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function failureDescription($crawler): string
|
||||
{
|
||||
|
Reference in New Issue
Block a user