Lines Matching defs:expected
103 public static function getDiffBetweenValuesSeparatedByBlank(string $expected, string $actual, string $expectedName = "expected class", string $actualName = "actual class"): string
105 $leftClasses = preg_split("/\s/", $expected);
127 public static function getDiffBetweenSrcSet(string $expected, string $actual)
129 $expectedSrcSets = explode(",", $expected);
134 throw new ExceptionNotEquals("The expected srcSet count ($countExpected) is not the same than the actual ($countActual).");
154 throw new ExceptionNotEquals("The expected width ($expectedWidth) of the srcSet ($i) is not the same than the actual ($actualWidth).");
171 public static function getDiffBetweenUrlStrings(string $expected, string $actual)
174 $url = Url::createFromString($expected);
176 throw new ExceptionBadSyntax("The expected URL string ($expected) is not valid. Error: {$e->getMessage()}");