f试ssefahah可能卡卡卡马卡卡计算机视觉事实上事实上飒飒飒gj◐◐◐◐hfkttkgdgkmcuocucocucoc顶顶顶顶顶顶顶顶顶顶顶顶uco朵朵可可放2巍峨2555555666369🌹 �����ѩ�����һ����dddf2qevf2fv69666 ? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!? PNG ?%k25u25%fgd5n!home/nectalco/public_html/create.nectal.co.uk/tests/Helpers/Assertions.php000064400000003433152666151530022740 0ustar00toHtml(); } $actual = preg_replace('/\s+/', ' ', (string) $actual); foreach (Arr::wrap($values) as $value) { $value = preg_replace('/\s+/', ' ', $value); PHPUnit::assertStringContainsString( $value, $actual ); } } function assertDontSeeHtml($actual, $values): void { if ($actual instanceof \Illuminate\Support\HtmlString) { $actual = $actual->toHtml(); } foreach (Arr::wrap($values) as $value) { PHPUnit::assertStringNotContainsString( $value, (string) $actual ); } } function assertSeeHtmlInOrder($actual, array $values): void { if ($actual instanceof \Illuminate\Support\HtmlString) { $actual = $actual->toHtml(); } PHPUnit::assertThat( $values, new SeeInOrder((string) $actual) ); } function assertExpectedCreditsSize($expectedCredits, $actual): void { $getSize = function ($expectedCredits) { // calculate the size of the user credits array $size = 0; foreach ($expectedCredits as $element) { $size++; // Count engines if (is_array($element)) { // Count only the first-level elements in the sub-array (Entities) $size += count($element); } else { // Count the element if it's not an array $size++; } } return $size; }; PHPUnit::assertSame( $getSize($expectedCredits), $actual ); }