Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
StringMatches.php~
Содержимое
<?php /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use SebastianBergmann\Diff\Differ; /** * ... * * @since Class available since Release 3.5.0 */ class PHPUnit_Framework_Constraint_StringMatches extends PHPUnit_Framework_Constraint_PCREMatch { /** * @var string */ protected $string; /** * @param string $string */ public function __construct($string) { parent::__construct($string); $this->pattern = $this->createPatternFromFormat( preg_replace('/\r\n/', "\n", $string) ); $this->string = $string; } protected function failureDescription($other) { return 'format description matches text'; } protected function additionalFailureDescription($other) { $from = preg_split('(\r\n|\r|\n)', $this->string); $to = preg_split('(\r\n|\r|\n)', $other); foreach ($from as $index => $line) { if (isset($to[$index]) && $line !== $to[$index]) { $line = $this->createPatternFromFormat($line); if (preg_match($line, $to[$index]) > 0) { $from[$index] = $to[$index]; } } } $this->string = implode("\n", $from); $other = implode("\n", $to); $differ = new Differ("--- Expected\n+++ Actual\n"); return $differ->diff($this->string, $other); } protected function createPatternFromFormat($string) { $string = str_replace( array( '%e', '%s', '%S', '%a', '%A', '%w', '%i', '%d', '%x', '%f', '%c' ), array( '\\' . DIRECTORY_SEPARATOR, '[^\r\n]+', '[^\r\n]*', '.+', '.*', '\s*', '[+-]?\d+', '\d+', '[0-9a-fA-F]+', '[+-]?\.?\d+\.?\d*(?:[Ee][+-]?\d+)?', '.' ), preg_quote($string, '/') ); return '/^' . $string . '$/s'; } }
/vendor/phpunit/phpunit/src/Framework/Constraint/
Имя
Дата
Размер
..
2017-06-21
JsonMatches
2017-06-21
And.php
2017-06-21
3 кб.
And.php~
2025-01-10
3 кб.
ArrayHasKey.php
2017-06-21
2 кб.
ArrayHasKey.php~
2025-01-10
2 кб.
ArraySubset.php
2017-06-21
2 кб.
ArraySubset.php~
2025-01-10
2 кб.
Attribute.php
2017-06-21
2 кб.
Attribute.php~
2025-01-10
2 кб.
Callback.php
2017-06-21
1 кб.
Callback.php~
2025-01-10
1 кб.
ClassHasAttribute.php
2017-06-21
2 кб.
ClassHasAttribute.php~
2025-01-10
2 кб.
ClassHasStaticAttribute.php
2017-06-21
1 кб.
ClassHasStaticAttribute.php~
2025-01-10
1 кб.
Composite.php
2017-06-21
2 кб.
Composite.php~
2025-01-10
2 кб.
Count.php
2017-06-21
2 кб.
Count.php~
2025-01-10
2 кб.
Exception.php
2017-06-21
2 кб.
Exception.php~
2025-01-10
2 кб.
ExceptionCode.php
2017-06-21
2 кб.
ExceptionCode.php~
2025-01-10
2 кб.
ExceptionMessage.php
2017-06-21
2 кб.
ExceptionMessage.php~
2025-01-10
2 кб.
ExceptionMessageRegExp.php
2017-06-21
2 кб.
ExceptionMessageRegExp.php~
2025-01-10
2 кб.
FileExists.php
2017-06-21
1 кб.
FileExists.php~
2025-01-10
1 кб.
GreaterThan.php
2017-06-21
1 кб.
GreaterThan.php~
2025-01-10
1 кб.
IsAnything.php
2017-06-21
2 кб.
IsAnything.php~
2025-01-10
2 кб.
IsEmpty.php
2017-06-21
2 кб.
IsEmpty.php~
2025-01-10
2 кб.
IsEqual.php
2017-06-21
5 кб.
IsEqual.php~
2025-01-10
5 кб.
IsFalse.php
2017-06-21
885 байт
IsFalse.php~
2025-01-10
885 байт
IsIdentical.php
2017-06-21
4 кб.
IsIdentical.php~
2025-01-10
4 кб.
IsInstanceOf.php
2017-06-21
2 кб.
IsInstanceOf.php~
2025-01-10
2 кб.
IsJson.php
2017-06-21
2 кб.
IsJson.php~
2025-01-10
2 кб.
IsNull.php
2017-06-21
881 байт
IsNull.php~
2025-01-10
881 байт
IsTrue.php
2017-06-21
881 байт
IsTrue.php~
2025-01-10
881 байт
IsType.php
2017-06-21
3 кб.
IsType.php~
2025-01-10
3 кб.
JsonMatches.php
2017-06-21
2 кб.
JsonMatches.php~
2025-01-10
2 кб.
LessThan.php
2017-06-21
1 кб.
LessThan.php~
2025-01-10
1 кб.
Not.php
2017-06-21
4 кб.
Not.php~
2025-01-10
4 кб.
ObjectHasAttribute.php
2017-06-21
925 байт
ObjectHasAttribute.php~
2025-01-10
925 байт
Or.php
2017-06-21
3 кб.
Or.php~
2025-01-10
3 кб.
PCREMatch.php
2017-06-21
1 кб.
PCREMatch.php~
2025-01-10
1 кб.
SameSize.php
2017-06-21
595 байт
SameSize.php~
2025-01-10
595 байт
StringContains.php
2017-06-21
2 кб.
StringContains.php~
2025-01-10
2 кб.
StringEndsWith.php
2017-06-21
1 кб.
StringEndsWith.php~
2025-01-10
1 кб.
StringMatches.php
2017-06-21
2 кб.
StringMatches.php~
2025-01-10
2 кб.
StringStartsWith.php
2017-06-21
1 кб.
StringStartsWith.php~
2025-01-10
1 кб.
TraversableContains.php
2017-06-21
3 кб.
TraversableContains.php~
2025-01-10
3 кб.
TraversableContainsOnly.php
2017-06-21
2 кб.
TraversableContainsOnly.php~
2025-01-10
2 кб.
Xor.php
2017-06-21
3 кб.
Xor.php~
2025-01-10
3 кб.
/vendor/phpunit/phpunit/src/Framework/Constraint
Загрузить файлы
Файл 1
Файл 2
Файл 3