Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
IsInstanceOf.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. */ /** * Constraint that asserts that the object it is evaluated for is an instance * of a given class. * * The expected class name is passed in the constructor. * * @since Class available since Release 3.0.0 */ class PHPUnit_Framework_Constraint_IsInstanceOf extends PHPUnit_Framework_Constraint { /** * @var string */ protected $className; /** * @param string $className */ public function __construct($className) { parent::__construct(); $this->className = $className; } /** * Evaluates the constraint for parameter $other. Returns true if the * constraint is met, false otherwise. * * @param mixed $other Value or object to evaluate. * * @return bool */ protected function matches($other) { return ($other instanceof $this->className); } /** * 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) { return sprintf( '%s is an instance of %s "%s"', $this->exporter->shortenedExport($other), $this->getType(), $this->className ); } /** * Returns a string representation of the constraint. * * @return string */ public function toString() { return sprintf( 'is instance of %s "%s"', $this->getType(), $this->className ); } private function getType() { try { $reflection = new ReflectionClass($this->className); if ($reflection->isInterface()) { return 'interface'; } } catch (ReflectionException $e) { } return 'class'; } }
/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