<?php method_exists(object|string $object_or_class, string $method): bool
<?php foreach ($this->removedFunctionParameters[$functionLc] as $offset => $parameterDetails) { if ($offset <= $parameterOffsetFound) { if (isset($parameterDetails['callback']) && \method_exists($this, $parameterDetails['callback'])) { if ($this->{$parameterDetails['callback']}($phpcsFile, $parameters[($offset + 1)]) === false) { continue; }
<?php $msg = "Expected $type message '$expectedMessage' on line $lineNumber not found. Instead found: $insteadMessagesString."; if (\method_exists($this, 'assertStringContainsString') === false) { return $this->assertContains($expectedMessage, $insteadMessagesString, $msg); }
<?php $result = $this->createDisableSniffNotice(self::$phpcsFile, 'Stnd.Cat.Sniff', 'Code'); if (\method_exists($this, 'assertMatchesRegularExpression') === true) { $this->assertMatchesRegularExpression($expectedPattern, $result); } else {
<?php public function phpWarningTestHelper($message) { if (\method_exists($this, 'expectWarning')) { $this->expectWarning(); $this->expectWarningMessage($message);
<?php return; } if (\method_exists($this, 'expectException') && \class_exists('PHPUnit\Framework\Error\Warning')) { $this->expectException('PHPUnit\Framework\Error\Warning'); $this->expectExceptionMessage($message);