PhpSpec\Matcher\Iterate\SubjectElementDoesNotMatchException::__construct PHP Method

__construct() public method

public __construct ( integer $elementNumber, string $subjectKey, string $subjectValue, string $expectedKey, string $expectedValue )
$elementNumber integer
$subjectKey string
$subjectValue string
$expectedKey string
$expectedValue string
    public function __construct($elementNumber, $subjectKey, $subjectValue, $expectedKey, $expectedValue)
    {
        parent::__construct(sprintf('Expected subject to have element #%d with key %s and value %s, but got key %s and value %s.', $elementNumber, $expectedKey, $expectedValue, $subjectKey, $subjectValue));
    }
SubjectElementDoesNotMatchException