Lines Matching defs:actual
103 public static function getDiffBetweenValuesSeparatedByBlank(string $expected, string $actual, string $expectedName = "expected class", string $actualName = "actual class"): string
106 $rightClasses = preg_split("/\s/", $actual);
127 public static function getDiffBetweenSrcSet(string $expected, string $actual)
130 $actualSrcSets = explode(",", $actual);
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)
179 $urlActual = Url::createFromString($actual);
181 throw new ExceptionBadSyntax("The $actual URL string ($actual) is not valid. Error: {$e->getMessage()}");
190 * @param ?string $actualNames - the actual names
195 * * actual Name = foo bar