Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
Not.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. */ /** * Logical NOT. * * @since Class available since Release 3.0.0 */ class PHPUnit_Framework_Constraint_Not extends PHPUnit_Framework_Constraint { /** * @var PHPUnit_Framework_Constraint */ protected $constraint; /** * @param PHPUnit_Framework_Constraint $constraint */ public function __construct($constraint) { parent::__construct(); if (!($constraint instanceof PHPUnit_Framework_Constraint)) { $constraint = new PHPUnit_Framework_Constraint_IsEqual($constraint); } $this->constraint = $constraint; } /** * @param string $string * * @return string */ public static function negate($string) { return str_replace( array( 'contains ', 'exists', 'has ', 'is ', 'are ', 'matches ', 'starts with ', 'ends with ', 'reference ', 'not not ' ), array( 'does not contain ', 'does not exist', 'does not have ', 'is not ', 'are not ', 'does not match ', 'starts not with ', 'ends not with ', 'don\'t reference ', 'not ' ), $string ); } /** * Evaluates the constraint for parameter $other * * If $returnResult is set to false (the default), an exception is thrown * in case of a failure. null is returned otherwise. * * If $returnResult is true, the result of the evaluation is returned as * a boolean value instead: true in case of success, false in case of a * failure. * * @param mixed $other Value or object to evaluate. * @param string $description Additional information about the test * @param bool $returnResult Whether to return a result or throw an exception * * @return mixed * * @throws PHPUnit_Framework_ExpectationFailedException */ public function evaluate($other, $description = '', $returnResult = false) { $success = !$this->constraint->evaluate($other, $description, true); if ($returnResult) { return $success; } if (!$success) { $this->fail($other, $description); } } /** * Returns the description of the failure * * The beginning of failure messages is "Failed asserting that" in most * cases. This method should return the second part of that sentence. * * @param mixed $other Evaluated value or object. * * @return string */ protected function failureDescription($other) { switch (get_class($this->constraint)) { case 'PHPUnit_Framework_Constraint_And': case 'PHPUnit_Framework_Constraint_Not': case 'PHPUnit_Framework_Constraint_Or': return 'not( ' . $this->constraint->failureDescription($other) . ' )'; default: return self::negate( $this->constraint->failureDescription($other) ); } } /** * Returns a string representation of the constraint. * * @return string */ public function toString() { switch (get_class($this->constraint)) { case 'PHPUnit_Framework_Constraint_And': case 'PHPUnit_Framework_Constraint_Not': case 'PHPUnit_Framework_Constraint_Or': return 'not( ' . $this->constraint->toString() . ' )'; default: return self::negate( $this->constraint->toString() ); } } /** * Counts the number of constraint elements. * * @return int * * @since Method available since Release 3.4.0 */ public function count() { return count($this->constraint); } }
/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