prefix stringlengths 512 512 | suffix stringlengths 256 256 | middle stringlengths 14 229 | meta dict |
|---|---|---|---|
{ keep_me2 } from 'hello2';
import * as keep_me3 from 'hello3';
import data_only1 from 'data_only1';
import { data_only2 } from 'data_only2';
import { data_only3, shared4 } from 'shared4';
import * as data_only4 from 'data_only4';
import { shared5 } from 'shared5';
var leave_me_alone = 1;
function dont_bug_me_either()... | ar3;
data_only3;
};
const data_b2 = function data_apples() {};
const data_bla = ()=>{
data_inception1;
};
function getStaticProps() {
data_abc();
data_only1;
data_b;
data_b2;
data_bla();
return {
props: {
| data_abc() {}
const data_b = function() {
data_v | {
"filepath": "crates/next-custom-transforms/tests/fixture/strip-page-exports/getStaticProps/remove-re-exported-function-declarations-dependents-variables-functions-imports/output-data.js",
"language": "javascript",
"file_size": 912,
"cut_index": 547,
"middle_length": 52
} |
async function a() {
'use cache'
// this is not allowed here
this.foo()
// arguments is not allowed here
console.log(arguments)
const b = async () => {
// this is not allowed here
this.foo()
// arguments is not allowed here
console.log(arguments)
}
function c() {
// this is allowed... |
result: null,
product: {
async fetch() {
'use cache'
// this is not allowed here
this.result = await fetch('https://example.com').then((res) => res.json())
// arguments is not allowed here
console.log(arguments)
| console.log(arguments)
}
const e = async () => {
'use server'
// this is not allowed here
this.foo()
// arguments is not allowed here
console.log(arguments)
}
}
}
export const api = { | {
"filepath": "crates/next-custom-transforms/tests/errors/server-actions/server-graph/22/input.js",
"language": "javascript",
"file_size": 1007,
"cut_index": 512,
"middle_length": 229
} |
nc function a() {
// this is not allowed here
this.foo();
// arguments is not allowed here
console.log(arguments);
const b = async ()=>{
// this is not allowed here
this.foo();
// arguments is not allowed here
console.log(arguments);
};
function c() {
... | re
console.log(arguments);
};
}
}
export const api = {
result: null,
product: {
async fetch () {
// this is not allowed here
this.result = await fetch('https://example.com').then((res)=>res.js | o();
// arguments is allowed here
console.log(arguments);
};
const e = async ()=>{
// this is not allowed here
this.foo();
// arguments is not allowed he | {
"filepath": "crates/next-custom-transforms/tests/errors/server-actions/server-graph/22/output.js",
"language": "javascript",
"file_size": 1107,
"cut_index": 515,
"middle_length": 229
} |
2%3A%22getHeaders%22%7D%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack%20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_1%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%22... | %20no%20side%20effects%22%3Bimport%7BcreateServerReference%2CcallServer%2CfindSourceMapURL%7Dfrom%22private-next-rsc-action-client-wrapper%22%3Bconst%20%24%24RSC_SERVER_ACTION_2%3D%2F%2A%23__PURE__%2A%2FcreateServerReference%28%2240e44b877cc9d02556f56639c9 | m "data:text/javascript,%2F%2A%20__next_internal_action_entry_do_not_use__%20%5B%7B%2240e44b877cc9d02556f56639c94229621ab0af0f5f%22%3A%7B%22name%22%3A%22inc%22%7D%7D%2C%22%2Fapp%2Fitem.js%22%2C%22%22%5D%20%2A%2F%22use%20turbopack | {
"filepath": "crates/next-custom-transforms/tests/fixture/source-maps/turbopack/client-graph/production/server-actions/1/output.js",
"language": "javascript",
"file_size": 5213,
"cut_index": 716,
"middle_length": 229
} |
o'
import { keep_me2 } from 'hello2'
import * as keep_me3 from 'hello3'
import data_only1 from 'data_only1'
import { data_only2 } from 'data_only2'
import { data_only3, shared4 } from 'shared4'
import * as data_only4 from 'data_only4'
import default_only1 from 'default_only1'
import { default_only2 } from 'default_on... | b2 = function data_apples() {}
const data_bla = () => {
data_inception1
}
function getStaticProps() {
data_abc()
data_only1
data_b
data_b2
data_bla()
return { props: { data_var1 } }
}
export { getStaticProps }
const default_inception = 'ha | ar data_var1 = 1
let data_var2 = 2
const data_var3 = data_inception + data_only4
function data_inception1() {
data_var2
data_only2
}
function data_abc() {}
const data_b = function () {
data_var3
data_only3
}
const data_ | {
"filepath": "crates/next-custom-transforms/tests/fixture/strip-page-exports/getStaticProps/remove-re-exported-function-declarations-dependents-variables-functions-imports/input.js",
"language": "javascript",
"file_size": 1541,
"cut_index": 537,
"middle_length": 229
} |
->in(__DIR__ . '/tests/unit')
// DeprecatedPhpFeatureTest.php must not use declare(strict_types=1);
->notName('DeprecatedPhpFeatureTest.php')
// UseBaselineTest.php must not use declare(strict_types=1);
->notName('UseBaselineTest.php')
// Issue5795Test.php contains required whitespace that woul... | ;
->notPath('error-handler/_files/php-deprecation/src/FirstPartyClass.php')
->notPath('error-handler/_files/php-deprecation/tests/PhpDeprecationTest.php')
->notName('*.phpt');
$config = new PhpCsFixer\Config;
$config->setFinder($finder)
-> | st.php')
// InvokableConstraintAndPipeOperatorTest.php uses PHP 8.5 syntax
->notName('InvokableConstraintAndPipeOperatorTest.php')
// FirstPartyClass.php and PhpDeprecationTest.php must not use declare(strict_types=1) | {
"filepath": ".php-cs-fixer.dist.php",
"language": "php",
"file_size": 14150,
"cut_index": 921,
"middle_length": 229
} |
s=1);
/*
* 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.
*/
namespace PHPUnit\Util;
use PHPUnit\TextUI\Configuration\Registry as ConfigurationRegistry;... | * @param non-empty-string $header
*/
public static function build(string $header = "--- Expected\n+++ Actual\n"): Differ
{
$contextLines = ConfigurationRegistry::get()->diffContext();
return new Differ(
new StrictU | Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class DifferBuilder
{
/**
| {
"filepath": "src/Util/DifferBuilder.php",
"language": "php",
"file_size": 1640,
"cut_index": 537,
"middle_length": 229
} |
s=1);
/*
* 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.
*/
namespace PHPUnit\Util;
use PHPUnit\TextUI\Configuration\Registry as ConfigurationRegistry;... | value),
);
}
/**
* @param array<mixed> $data
*/
public static function shortenedRecursiveExport(array $data): string
{
return Sanitizer::sanitizeBidirectionalControlCharacters(
self::exporter()->shorte | rter
{
private static ?OriginalExporter $exporter = null;
public static function export(mixed $value): string
{
return Sanitizer::sanitizeBidirectionalControlCharacters(
self::exporter()->export($ | {
"filepath": "src/Util/Exporter.php",
"language": "php",
"file_size": 1604,
"cut_index": 537,
"middle_length": 229
} |
e(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Util;
/**
* @immutable
*
* @no-named-arguments Parameter ... | mpty-string}>
*/
private array $skippedGlobals;
/**
* @param list<array{name: non-empty-string, reason: non-empty-string}> $skippedGlobals
*/
public function __construct(string $globalsString, array $skippedGlobals)
{
| balStateResult
{
/**
* @param list<array{name: non-empty-string, reason: non-empty-string}> $skippedGlobals
*/
private string $globalsString;
/**
* @var list<array{name: non-empty-string, reason: non-e | {
"filepath": "src/Util/GlobalStateResult.php",
"language": "php",
"file_size": 1494,
"cut_index": 524,
"middle_length": 229
} |
s=1);
/*
* 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.
*/
namespace PHPUnit\Util;
use const DEBUG_BACKTRACE_IGNORE_ARGS;
use const DEBUG_BACKTRACE_PR... | PHPUnit
*/
final readonly class Test
{
/**
* @throws NoTestCaseObjectOnCallStackException
*/
public static function currentTestCase(): TestCase
{
foreach (debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNOR | er\Registry;
use ReflectionMethod;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for | {
"filepath": "src/Util/Test.php",
"language": "php",
"file_size": 1707,
"cut_index": 537,
"middle_length": 229
} |
art 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.
*/
namespace PHPUnit\Util;
use const ENT_QUOTES;
use function assert;
use function htmlspecialchars;
use function mb_con... | d, excluding the surrogate blocks, FFFE,
* and FFFF (not even as character reference).
*
* @see https://www.w3.org/TR/xml/#charsets
*/
public static function prepareString(string $string): string
{
$result = preg_replace | *
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class Xml
{
/**
* Escapes a string for the use in XML documents.
*
* Any Unicode character is allowe | {
"filepath": "src/Util/Xml/Xml.php",
"language": "php",
"file_size": 2290,
"cut_index": 563,
"middle_length": 229
} |
art 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.
*/
namespace PHPUnit\Framework;
use function assert;
use function class_exists;
use function count;
use function explode... | ncies = [];
/**
* @var ?non-empty-list<ExecutionOrderDependency>
*/
private ?array $providedTests = null;
/**
* @param list<ExecutionOrderDependency> $dependencies
*/
public function setDependencies(array $dependencies | @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final class DataProviderTestSuite extends TestSuite
{
/**
* @var list<ExecutionOrderDependency>
*/
private array $depende | {
"filepath": "src/Framework/DataProviderTestSuite.php",
"language": "php",
"file_size": 2318,
"cut_index": 563,
"middle_length": 229
} |
hrowableException;
use PHPUnit\Metadata\Api\Dependencies;
use PHPUnit\Metadata\Api\Groups;
use PHPUnit\Metadata\Api\HookMethods;
use PHPUnit\Metadata\Api\Requirements;
use PHPUnit\Metadata\MetadataCollection;
use PHPUnit\Runner\Exception as RunnerException;
use PHPUnit\Runner\Filter\Factory;
use PHPUnit\Runner\Phpt\Tes... | plements IteratorAggregate<non-negative-int, Test>
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
c | Test as TestUtil;
use ReflectionClass;
use ReflectionMethod;
use SebastianBergmann\CodeCoverage\InvalidArgumentException;
use SebastianBergmann\CodeCoverage\UnintentionallyCoveredCodeException;
use Throwable;
/**
* @template-im | {
"filepath": "src/Framework/TestSuite.php",
"language": "php",
"file_size": 21431,
"cut_index": 1331,
"middle_length": 229
} |
php declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework;
use function sprintf;
/**
* @no-named... | wnNativeTypeException extends InvalidArgumentException
{
public function __construct(string $type)
{
parent::__construct(
sprintf(
'Native type "%s" is not known',
$type,
),
); | al class Unkno | {
"filepath": "src/Framework/Exception/UnknownNativeTypeException.php",
"language": "php",
"file_size": 793,
"cut_index": 514,
"middle_length": 14
} |
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments P... | $className;
/**
* @param class-string $className
*/
public function __construct(string $className)
{
$this->className = $className;
}
/**
* @return class-string
*/
public function className(): string
|
* @var class-string
*/
private string | {
"filepath": "src/Framework/Attributes/CoversClass.php",
"language": "php",
"file_size": 901,
"cut_index": 547,
"middle_length": 52
} |
s=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-a... | nEmpty;
/**
* @param class-string $className
* @param non-empty-string $methodName
*/
public function __construct(string $className, string $methodName, bool $validateArgumentCount = true, bool $skipWhenEmpty = false)
{
| erExternal
{
/**
* @var class-string
*/
private string $className;
/**
* @var non-empty-string
*/
private string $methodName;
private bool $validateArgumentCount;
private bool $skipWhe | {
"filepath": "src/Framework/Attributes/DataProviderExternal.php",
"language": "php",
"file_size": 1713,
"cut_index": 537,
"middle_length": 229
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibilit... | empty-string $methodName
*/
public function __construct(string $methodName)
{
$this->methodName = $methodName;
}
/**
* @return non-empty-string
*/
public function methodName(): string
{
return $this-> | vate string $methodName;
/**
* @param non- | {
"filepath": "src/Framework/Attributes/DependsUsingShallowClone.php",
"language": "php",
"file_size": 934,
"cut_index": 606,
"middle_length": 52
} |
that was distributed with this source code.
*/
namespace PHPUnit\Util;
use const DIRECTORY_SEPARATOR;
use const PHP_EOL;
use function array_key_exists;
use function array_map;
use function array_walk;
use function assert;
use function count;
use function explode;
use function implode;
use function max;
use function ... | {
/**
* @var non-empty-array<non-empty-string, non-empty-string>
*/
private const array WHITESPACE_MAP = [
' ' => '·',
"\t" => '⇥',
];
/**
* @var non-empty-array<non-empty-string, non-empty-string>
*/
| rim;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final class Color
| {
"filepath": "src/Util/Color.php",
"language": "php",
"file_size": 5918,
"cut_index": 716,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\Util;
use const PHP_OS_FAMILY;
use function array_any;
use function assert;
use function class_exists;
use function defined;
use function dirname;
use function is_dir;
use function realpath;
use function str_starts_with;
use function sys_get_temp_dir;
... | \Diff\Diff;
use SebastianBergmann\Environment\Runtime;
use SebastianBergmann\Exporter\Exporter;
use SebastianBergmann\FileIterator\Facade as FileIteratorFacade;
use SebastianBergmann\GlobalState\Snapshot;
use SebastianBergmann\Invoker\Invoker;
use Sebastia | eflectionClass;
use SebastianBergmann\CliParser\Parser as CliParser;
use SebastianBergmann\CodeCoverage\CodeCoverage;
use SebastianBergmann\Comparator\Comparator;
use SebastianBergmann\Complexity\Calculator;
use SebastianBergmann | {
"filepath": "src/Util/ExcludeList.php",
"language": "php",
"file_size": 5875,
"cut_index": 716,
"middle_length": 229
} |
e(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Util;
use const DIRECTORY_SEPARATOR;
use function basename;
... | ol
{
return !(!is_dir($directory) && !@mkdir($directory, 0o777, true) && !is_dir($directory));
}
/**
* @param non-empty-string $path
*
* @return false|non-empty-string
*/
public static function resolveStreamOrFi | compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class Filesystem
{
public static function createDirectory(string $directory): bo | {
"filepath": "src/Util/Filesystem.php",
"language": "php",
"file_size": 1364,
"cut_index": 524,
"middle_length": 229
} |
;
use function defined;
use function get_defined_constants;
use function get_included_files;
use function in_array;
use function ini_get_all;
use function is_array;
use function is_file;
use function is_scalar;
use function is_string;
use function preg_match;
use function serialize;
use function sprintf;
use function s... | private const array SUPER_GLOBAL_ARRAYS = [
'_ENV',
'_POST',
'_GET',
'_COOKIE',
'_SERVER',
'_FILES',
'_REQUEST',
];
/**
* Keys in $_SERVER that are populated by the SAPI in the child p | compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class GlobalState
{
/**
* @var non-empty-list<non-empty-string>
*/
| {
"filepath": "src/Util/GlobalState.php",
"language": "php",
"file_size": 12616,
"cut_index": 921,
"middle_length": 229
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Util;
use const JSON_ERROR_NONE;
use const JSON_PRETTY_PRINT;
use const JSON_UNESCAPED_SLASHES;
use const JSON_UNESCAPED_UNICODE;
use const SORT_STRIN... | ss Json
{
/**
* @throws InvalidJsonException
*/
public static function prettify(string $json): string
{
$decodedJson = json_decode($json, false);
if (json_last_error() !== JSON_ERROR_NONE) {
throw new Inva | ort;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly cla | {
"filepath": "src/Util/Json.php",
"language": "php",
"file_size": 3360,
"cut_index": 614,
"middle_length": 229
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Util;
use function array_merge;
use function array_reverse;
use function assert;
use PHPUnit\Framework\Assert;
use PHPUnit\Framework\TestCase;
use Ref... | {file: non-empty-string, line: non-negative-int}
*/
public static function sourceLocationFor(string $className, string $methodName): array
{
try {
$reflector = new ReflectionMethod($className, $methodName);
$fi | class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class Reflection
{
/**
* @param class-string $className
* @param non-empty-string $methodName
*
* @return array | {
"filepath": "src/Util/Reflection.php",
"language": "php",
"file_size": 3159,
"cut_index": 614,
"middle_length": 229
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Util;
use function array_any;
use function array_unshift;
use function defined;
use function in_array;
use function is_array;
use function is_file;
us... | ilter
{
/**
* @throws Exception
*/
public static function stackTraceFromThrowableAsString(Throwable $t, bool $unwrap = true): string
{
if ($t instanceof PhptAssertionFailedError) {
$stackTrace = $t->syntheticTrace( |
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class F | {
"filepath": "src/Util/Filter.php",
"language": "php",
"file_size": 4566,
"cut_index": 614,
"middle_length": 229
} |
e(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Util;
use function mb_ord;
use function preg_replace_callbac... | es for U+202A-U+202E and U+2066-U+2069 directly so that
* the function is safe to call on strings that are not valid UTF-8.
*
* @see https://github.com/sebastianbergmann/phpunit/issues/6605
*/
public static function sanitizeBidirect | compatibility promise for PHPUnit
*/
final readonly class Sanitizer
{
/**
* Replaces Unicode bidirectional formatting characters with their visible \u{NNNN} escape sequence.
*
* Matches the UTF-8 byte sequenc | {
"filepath": "src/Util/Sanitizer.php",
"language": "php",
"file_size": 1395,
"cut_index": 524,
"middle_length": 229
} |
e(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Util;
use function trim;
use PHPUnit\Framework\ExpectationFa... | function map(Throwable $t): string
{
if ($t instanceof ErrorException) {
return $t->getMessage();
}
if ($t instanceof SelfDescribing) {
$buffer = $t->toString();
if ($t instanceof Expectati | es are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class ThrowableToStringMapper
{
public static | {
"filepath": "src/Util/ThrowableToStringMapper.php",
"language": "php",
"file_size": 1465,
"cut_index": 524,
"middle_length": 229
} |
declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Util;
use function sprintf;
use RuntimeException;
/*... | ends RuntimeException implements Exception
{
public function __construct(string $directory)
{
parent::__construct(
sprintf(
'"%s" is not a directory',
$directory,
),
);
}
} | HPUnit
*/
final class InvalidDirectoryException ext | {
"filepath": "src/Util/Exception/InvalidDirectoryException.php",
"language": "php",
"file_size": 826,
"cut_index": 517,
"middle_length": 52
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Util\Xml;
use const LIBXML_NONET;
use function assert;
use function error_reporting;
use function file_get_contents;
use function libxml_get_errors;
u... | ion loadFile(string $filename, bool $ignoreComments = false): DOMDocument
{
$reporting = error_reporting(0);
$contents = file_get_contents($filename);
error_reporting($reporting);
if ($contents === false) {
| backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final readonly class Loader
{
/**
* @throws XmlException
*/
public funct | {
"filepath": "src/Util/Xml/Loader.php",
"language": "php",
"file_size": 3160,
"cut_index": 614,
"middle_length": 229
} |
s=1);
/*
* 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.
*/
namespace PHPUnit\Util;
use function in_array;
/**
* @no-named-arguments Parameter names ... | /
public function __construct(string $operator)
{
$this->ensureOperatorIsValid($operator);
$this->operator = $operator;
}
/**
* @return '!='|'<'|'<='|'<>'|'='|'=='|'>'|'>='|'eq'|'ge'|'gt'|'le'|'lt'|'ne'
*/
pu | |'eq'|'ge'|'gt'|'le'|'lt'|'ne'
*/
private string $operator;
/**
* @param '!='|'<'|'<='|'<>'|'='|'=='|'>'|'>='|'eq'|'ge'|'gt'|'le'|'lt'|'ne' $operator
*
* @throws InvalidVersionOperatorException
* | {
"filepath": "src/Util/VersionComparisonOperator.php",
"language": "php",
"file_size": 1543,
"cut_index": 537,
"middle_length": 229
} |
tian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Util\PHP;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @interna... | ments;
/**
* @var ?non-empty-string
*/
private ?string $input;
private bool $redirectErrors;
private bool $requiresXdebug;
/**
* @param non-empty-string $code
* @param list<string> $phpSettings
| * @var list<string>
*/
private array $phpSettings;
/**
* @var array<string, string>
*/
private array $environmentVariables;
/**
* @var list<non-empty-string>
*/
private array $argu | {
"filepath": "src/Util/PHP/Job.php",
"language": "php",
"file_size": 3386,
"cut_index": 614,
"middle_length": 229
} |
s=1);
/*
* 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.
*/
namespace PHPUnit\Util\PHP;
use PHPUnit\Event\Facade;
use PHPUnit\Framework\Test;
use PHPUn... | public static function run(Job $job): Result
{
return self::runner()->run($job);
}
/**
* @param non-empty-string $processResultFile
* @param ?non-empty-string $processResultNonce
*/
public static function runTestJo | by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final class JobRunnerRegistry
{
private static ?JobRunner $runner = null;
| {
"filepath": "src/Util/PHP/JobRunnerRegistry.php",
"language": "php",
"file_size": 1757,
"cut_index": 537,
"middle_length": 229
} |
non-empty-list<array-key> $keysToBeConsidered
*
* @throws Exception
* @throws ExpectationFailedException
*/
final public static function assertArrayIsEqualToArrayOnlyConsideringListOfKeys(array $expected, array $actual, array $keysToBeConsidered, string $message = ''): void
{
$filte... | ilteredExpected, $filteredActual, $message);
}
/**
* Asserts that two arrays are equal while ignoring a list of keys.
*
* @param array<mixed> $expected
* @param array<mixed> $actual
* @param non-e |
$filteredActual = [];
foreach ($keysToBeConsidered as $key) {
if (isset($actual[$key])) {
$filteredActual[$key] = $actual[$key];
}
}
self::assertEquals($f | {
"filepath": "src/Framework/Assert.php",
"language": "php",
"file_size": 99264,
"cut_index": 3790,
"middle_length": 229
} |
* 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.
*/
namespace PHPUnit\Util\PHP;
/**
* @immutable
*
* @no-named-arguments Parameter names are not cover... | ic function __construct(string $stdout, string $stderr)
{
$this->stdout = $stdout;
$this->stderr = $stderr;
}
public function stdout(): string
{
return $this->stdout;
}
public function stderr(): string
| tring $stdout;
private string $stderr;
publ | {
"filepath": "src/Util/PHP/Result.php",
"language": "php",
"file_size": 895,
"cut_index": 547,
"middle_length": 52
} |
ict_types=1);
/*
* 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.
*/
namespace PHPUnit\Util;
use function sprintf;
use RuntimeException;
/**
* @no-nam... | untimeException implements Exception
{
public function __construct(string $operator)
{
parent::__construct(
sprintf(
'"%s" is not a valid version_compare() operator',
$operator,
),
| inal class InvalidVersionOperatorException extends R | {
"filepath": "src/Util/Exception/InvalidVersionOperatorException.php",
"language": "php",
"file_size": 853,
"cut_index": 529,
"middle_length": 52
} |
that was distributed with this source code.
*/
namespace PHPUnit\Framework;
use function array_filter;
use function array_map;
use function array_values;
use function assert;
use function class_exists;
use function count;
use function explode;
use function in_array;
use function str_contains;
use PHPUnit\Metadata\De... | = '';
private string $methodName = '';
private readonly bool $shallowClone;
private readonly bool $deepClone;
public static function invalid(): self
{
return new self(
'',
'',
false,
| ackward compatibility promise for PHPUnit
*
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final class ExecutionOrderDependency implements Stringable
{
private string $className | {
"filepath": "src/Framework/ExecutionOrderDependency.php",
"language": "php",
"file_size": 5894,
"cut_index": 716,
"middle_length": 229
} |
i\DataProvider;
use PHPUnit\Metadata\Api\Groups;
use PHPUnit\Metadata\Api\ProvidedData;
use PHPUnit\Metadata\Api\Requirements;
use PHPUnit\Metadata\BackupGlobals;
use PHPUnit\Metadata\BackupStaticProperties;
use PHPUnit\Metadata\ExcludeGlobalVariableFromBackup;
use PHPUnit\Metadata\ExcludeStaticPropertyFromBackup;
use ... | by the backward compatibility promise for PHPUnit
*
* @phpstan-type BackupSettings array{backupGlobals: ?true, backupGlobalsExcludeList: list<string>, backupStaticProperties: ?true, backupStaticPropertiesExcludeList: array<class-string, list<non-empty-s | \TextUI\Configuration\Registry as ConfigurationRegistry;
use ReflectionClass;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*
* @internal This class is not covered | {
"filepath": "src/Framework/TestBuilder.php",
"language": "php",
"file_size": 11557,
"cut_index": 921,
"middle_length": 229
} |
ction assert;
use function count;
use function explode;
use function fclose;
use function file_get_contents;
use function file_put_contents;
use function function_exists;
use function fwrite;
use function ini_get_all;
use function is_array;
use function is_file;
use function is_resource;
use function is_string;
use fun... | e;
use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestRunner\ChildProcessResultProcessor;
use PHPUnit\Runner\CodeCoverage;
use SebastianBergmann\Environment\Runtime;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibili | contents;
use function sys_get_temp_dir;
use function tempnam;
use function tmpfile;
use function trim;
use function unlink;
use function xdebug_is_debugger_active;
use PHPUnit\Event\Facade;
use PHPUnit\Event\Facade as EventFacad | {
"filepath": "src/Util/PHP/JobRunner.php",
"language": "php",
"file_size": 12605,
"cut_index": 921,
"middle_length": 229
} |
use PHPUnit\Runner\DeprecationCollector\Facade as DeprecationCollector;
use PHPUnit\Runner\ErrorHandler;
use PHPUnit\Runner\HookMethodCollection;
use PHPUnit\Runner\ShutdownHandler;
use PHPUnit\TestRunner\TestResult\PassedTests;
use PHPUnit\TextUI\Configuration\Registry as ConfigurationRegistry;
use PHPUnit\Util\Differ... | rer;
use SebastianBergmann\GlobalState\Snapshot;
use SebastianBergmann\Invoker\TimeoutException;
use SebastianBergmann\ObjectEnumerator\Enumerator;
use Throwable;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility pro | ception;
use SebastianBergmann\Comparator\Comparator;
use SebastianBergmann\Comparator\Factory as ComparatorFactory;
use SebastianBergmann\GlobalState\ExcludeList as GlobalStateExcludeList;
use SebastianBergmann\GlobalState\Resto | {
"filepath": "src/Framework/TestCase.php",
"language": "php",
"file_size": 81397,
"cut_index": 3790,
"middle_length": 229
} |
* 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.
*/
namespace PHPUnit\Framework;
/**
* @no-named-arguments Parameter names are not covered by the backwa... | = 'float';
case Int = 'int';
case Iterable = 'iterable';
case Null = 'null';
case Numeric = 'numeric';
case Object = 'object';
case Resource = 'resource';
case Scalar = 's | ource = 'resource (closed)';
case Float | {
"filepath": "src/Framework/NativeType.php",
"language": "php",
"file_size": 901,
"cut_index": 547,
"middle_length": 52
} |
art 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.
*/
namespace PHPUnit\Framework;
use function assert;
use RecursiveIterator;
/**
* @template-implements RecursiveIterat... | te int $position = 0;
public function __construct(TestSuite $testSuite)
{
$this->tests = $testSuite->tests();
}
public function rewind(): void
{
$this->position = 0;
}
public function valid(): bool
{
| compatibility promise for PHPUnit
*/
final class TestSuiteIterator implements RecursiveIterator
{
/**
* @var list<Test>
*/
private readonly array $tests;
/**
* @var non-negative-int
*/
priva | {
"filepath": "src/Framework/TestSuiteIterator.php",
"language": "php",
"file_size": 2025,
"cut_index": 563,
"middle_length": 229
} |
declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework;
use Exception;
use SebastianBergmann\Compar... | tends AssertionFailedError
{
protected ?ComparisonFailure $comparisonFailure = null;
public function __construct(string $message, ?ComparisonFailure $comparisonFailure = null, ?Exception $previous = null)
{
$this->comparisonFailure = $ | ailure which is used to
* generate diff output of the failed expectations.
*
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
*/
final class ExpectationFailedException ex | {
"filepath": "src/Framework/Exception/ExpectationFailedException.php",
"language": "php",
"file_size": 1201,
"cut_index": 518,
"middle_length": 229
} |
<?php declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework;
use Throwable;
/**
* @no-named-argu... | $e->getMessage(),
$e->getCode(),
$e,
);
$exception->providerLabel = $providerLabel;
return $exception;
}
public function getProviderLabel(): ?string
{
return $this->providerLabel;
}
| ass InvalidDataProviderException extends Exception
{
private ?string $providerLabel = null;
public static function forException(Throwable $e, string $providerLabel): self
{
$exception = new self(
| {
"filepath": "src/Framework/Exception/InvalidDataProviderException.php",
"language": "php",
"file_size": 999,
"cut_index": 512,
"middle_length": 229
} |
s=1);
/*
* 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.
*/
namespace PHPUnit\Framework;
/**
* @immutable
*
* @no-named-arguments Parameter names ar... | private readonly array $syntheticTrace;
private readonly string $diff;
/**
* @param list<array{file?: string, line?: int, function?: string, type?: string, ...}> $trace
*/
public function __construct(string $message, int $code, st | rror extends AssertionFailedError
{
private readonly string $syntheticFile;
private readonly int $syntheticLine;
/**
* @var list<array{file?: string, line?: int, function?: string, type?: string, ...}>
*/
| {
"filepath": "src/Framework/Exception/PhptAssertionFailedError.php",
"language": "php",
"file_size": 1756,
"cut_index": 537,
"middle_length": 229
} |
art 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.
*/
namespace PHPUnit\Framework;
use function array_keys;
use function get_object_vars;
use function is_int;
use function... | om being
* destructed (until test results are eventually printed), so memory cannot be
* freed up.
*
* With enabled process isolation, test results are serialized in the child
* process and unserialized in the parent process. The stack trace of Except | behind.
*
* Every Exception contains a stack trace. Each stack frame contains the 'args'
* of the called function. The function arguments can contain references to
* instantiated objects. The references prevent the objects fr | {
"filepath": "src/Framework/Exception/Exception.php",
"language": "php",
"file_size": 2922,
"cut_index": 563,
"middle_length": 229
} |
es=1);
/*
* 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.
*/
namespace PHPUnit\Framework;
use function sprintf;
/**
* @no-named-arguments Parameter n... | ption extends InvalidArgumentException
{
public function __construct(string $name)
{
parent::__construct(
sprintf(
'Class or interface "%s" does not exist',
$name,
),
);
}
| rInterfaceExce | {
"filepath": "src/Framework/Exception/UnknownClassOrInterfaceException.php",
"language": "php",
"file_size": 808,
"cut_index": 536,
"middle_length": 14
} |
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.
*/
namespace PHPUnit\Framework;
use function sprintf;
/**
* @no-named-arguments Parameter names are not covered by... | tion fromParameterName(string $parameterName): self
{
return new self(
sprintf(
'Passing an argument of type Generator for the %s parameter is not supported',
$parameterName,
),
); | ds InvalidArgumentException
{
public static func | {
"filepath": "src/Framework/Exception/GeneratorNotSupportedException.php",
"language": "php",
"file_size": 876,
"cut_index": 559,
"middle_length": 52
} |
* 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.
*/
namespace PHPUnit\Framework;
use function sprintf;
/**
* @no-named-arguments Parameter names are no... | public function __construct(string $className, string $methodName)
{
parent::__construct(
sprintf(
'Comparison method %s::%s() does not declare bool return type.',
$className,
$metho | eclareBoolReturnTypeException extends Exception
{
| {
"filepath": "src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareBoolReturnTypeException.php",
"language": "php",
"file_size": 896,
"cut_index": 547,
"middle_length": 52
} |
* 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.
*/
namespace PHPUnit\Framework;
use function sprintf;
/**
* @no-named-arguments Parameter names are no... | public function __construct(string $className, string $methodName)
{
parent::__construct(
sprintf(
'Parameter of comparison method %s::%s() does not have a declared type.',
$className,
| eclareParameterTypeException extends Exception
{
| {
"filepath": "src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareParameterTypeException.php",
"language": "php",
"file_size": 904,
"cut_index": 547,
"middle_length": 52
} |
ict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework;
use function sprintf;
/**
* @no-named-arguments Para... | public function __construct(string $className, string $methodName)
{
parent::__construct(
sprintf(
'Comparison method %s::%s() does not exist.',
$className,
$methodName,
| isonMethodDoesNotExistException extends Exception
{
| {
"filepath": "src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotExistException.php",
"language": "php",
"file_size": 861,
"cut_index": 529,
"middle_length": 52
} |
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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter nam... | -negative-int $priority
*/
public function __construct(int $priority = 0)
{
$this->priority = $priority;
}
/**
* @return non-negative-int
*/
public function priority(): int
{
return $this->priority;
| private int $priority;
/**
* @param non | {
"filepath": "src/Framework/Attributes/AfterClass.php",
"language": "php",
"file_size": 874,
"cut_index": 559,
"middle_length": 52
} |
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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter nam... | ative-int $priority
*/
public function __construct(int $priority = 0)
{
$this->priority = $priority;
}
/**
* @return non-negative-int
*/
public function priority(): int
{
return $this->priority;
} | rivate int $priority;
/**
* @param non-neg | {
"filepath": "src/Framework/Attributes/Before.php",
"language": "php",
"file_size": 870,
"cut_index": 559,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework;
use function sprintf;
/**
* @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit... | odName, string $type)
{
parent::__construct(
sprintf(
'%s is not an accepted argument type for comparison method %s::%s().',
$type,
$className,
$methodName,
| function __construct(string $className, string $meth | {
"filepath": "src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotAcceptParameterTypeException.php",
"language": "php",
"file_size": 937,
"cut_index": 606,
"middle_length": 52
} |
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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter nam... | tive-int $priority
*/
public function __construct(int $priority = 0)
{
$this->priority = $priority;
}
/**
* @return non-negative-int
*/
public function priority(): int
{
return $this->priority;
}
| ivate int $priority;
/**
* @param non-nega | {
"filepath": "src/Framework/Attributes/After.php",
"language": "php",
"file_size": 869,
"cut_index": 559,
"middle_length": 52
} |
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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter nam... | n-negative-int $priority
*/
public function __construct(int $priority = 0)
{
$this->priority = $priority;
}
/**
* @return non-negative-int
*/
public function priority(): int
{
return $this->priority;
| private int $priority;
/**
* @param no | {
"filepath": "src/Framework/Attributes/BeforeClass.php",
"language": "php",
"file_size": 875,
"cut_index": 559,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibilit... | string $className
*/
public function __construct(string $className)
{
$this->className = $className;
}
/**
* @return class-string
*/
public function className(): string
{
return $this->className;
| ate string $className;
/**
* @param class- | {
"filepath": "src/Framework/Attributes/CoversClassesThatExtendClass.php",
"language": "php",
"file_size": 918,
"cut_index": 606,
"middle_length": 52
} |
* (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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by t... | Name;
/**
* @param class-string $interfaceName
*/
public function __construct(string $interfaceName)
{
$this->interfaceName = $interfaceName;
}
/**
* @return class-string
*/
public function interfaceNam | r class-string
*/
private string $interface | {
"filepath": "src/Framework/Attributes/CoversClassesThatImplementInterface.php",
"language": "php",
"file_size": 953,
"cut_index": 582,
"middle_length": 52
} |
declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutabl... | * @param non-empty-string $methodName
*/
public function __construct(string $className, string $methodName)
{
$this->className = $className;
$this->methodName = $methodName;
}
/**
* @return class-string
*/
| y class CoversMethod
{
/**
* @var class-string
*/
private string $className;
/**
* @var non-empty-string
*/
private string $methodName;
/**
* @param class-string $className
| {
"filepath": "src/Framework/Attributes/CoversMethod.php",
"language": "php",
"file_size": 1225,
"cut_index": 518,
"middle_length": 229
} |
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments P... | $traitName;
/**
* @param trait-string $traitName
*/
public function __construct(string $traitName)
{
$this->traitName = $traitName;
}
/**
* @return trait-string
*/
public function traitName(): string
|
* @var trait-string
*/
private string | {
"filepath": "src/Framework/Attributes/CoversTrait.php",
"language": "php",
"file_size": 901,
"cut_index": 547,
"middle_length": 52
} |
* 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.
*/
namespace PHPUnit\Framework;
use function sprintf;
/**
* @no-named-arguments Parameter names are no... |
{
public function __construct(string $className, string $methodName)
{
parent::__construct(
sprintf(
'Comparison method %s::%s() does not declare exactly one parameter.',
$className,
| eclareExactlyOneParameterException extends Exception | {
"filepath": "src/Framework/Exception/ObjectEquals/ComparisonMethodDoesNotDeclareExactlyOneParameterException.php",
"language": "php",
"file_size": 906,
"cut_index": 547,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibilit... | g $namespace
*/
public function __construct(string $namespace)
{
$this->namespace = $namespace;
}
/**
* @return non-empty-string
*/
public function namespace(): string
{
return $this->namespace;
} | g $namespace;
/**
* @param non-empty-strin | {
"filepath": "src/Framework/Attributes/CoversNamespace.php",
"language": "php",
"file_size": 917,
"cut_index": 606,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibilit... | ing $functionName
*/
public function __construct(string $functionName)
{
$this->functionName = $functionName;
}
/**
* @return non-empty-string
*/
public function functionName(): string
{
return $this- | $functionName;
/**
* @param non-empty-str | {
"filepath": "src/Framework/Attributes/CoversFunction.php",
"language": "php",
"file_size": 937,
"cut_index": 606,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibilit... | hodName
*/
public function __construct(string $methodName)
{
$this->methodName = $methodName;
}
/**
* @return non-empty-string
*/
public function methodName(): string
{
return $this->methodName;
} | odName;
/**
* @param non-empty-string $met | {
"filepath": "src/Framework/Attributes/Depends.php",
"language": "php",
"file_size": 917,
"cut_index": 606,
"middle_length": 52
} |
?php declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
use Closure;... | losure = $closure;
$this->validateArgumentCount = $validateArgumentCount;
}
public function closure(): Closure
{
return $this->closure;
}
public function validateArgumentCount(): bool
{
return | BLE)]
final readonly class DataProviderClosure
{
private Closure $closure;
private bool $validateArgumentCount;
public function __construct(Closure $closure, bool $validateArgumentCount = true)
{
$this->c | {
"filepath": "src/Framework/Attributes/DataProviderClosure.php",
"language": "php",
"file_size": 1037,
"cut_index": 513,
"middle_length": 229
} |
declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutabl... | $className
* @param non-empty-string $methodName
*/
public function __construct(string $className, string $methodName)
{
$this->className = $className;
$this->methodName = $methodName;
}
/**
* @return clas | ly class DependsExternalUsingDeepClone
{
/**
* @var class-string
*/
private string $className;
/**
* @var non-empty-string
*/
private string $methodName;
/**
* @param class-string | {
"filepath": "src/Framework/Attributes/DependsExternalUsingDeepClone.php",
"language": "php",
"file_size": 1243,
"cut_index": 518,
"middle_length": 229
} |
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments P... | ring $className;
/**
* @param class-string $className
*/
public function __construct(string $className)
{
$this->className = $className;
}
/**
* @return class-string
*/
public function className(): stri | /**
* @var class-string
*/
private st | {
"filepath": "src/Framework/Attributes/DependsOnClass.php",
"language": "php",
"file_size": 905,
"cut_index": 547,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibilit... | ass-string $className
*/
public function __construct(string $className)
{
$this->className = $className;
}
/**
* @return class-string
*/
public function className(): string
{
return $this->className;
| private string $className;
/**
* @param cl | {
"filepath": "src/Framework/Attributes/DependsOnClassUsingShallowClone.php",
"language": "php",
"file_size": 922,
"cut_index": 606,
"middle_length": 52
} |
e(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
... | public function __construct(string $methodName, bool $validateArgumentCount = true, bool $skipWhenEmpty = false)
{
$this->methodName = $methodName;
$this->validateArgumentCount = $validateArgumentCount;
$this->ski | ss DataProvider
{
/**
* @var non-empty-string
*/
private string $methodName;
private bool $validateArgumentCount;
private bool $skipWhenEmpty;
/**
* @param non-empty-string $methodName
*/
| {
"filepath": "src/Framework/Attributes/DataProvider.php",
"language": "php",
"file_size": 1390,
"cut_index": 524,
"middle_length": 229
} |
declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutabl... | $className
* @param non-empty-string $methodName
*/
public function __construct(string $className, string $methodName)
{
$this->className = $className;
$this->methodName = $methodName;
}
/**
* @return c | ly class DependsExternalUsingShallowClone
{
/**
* @var class-string
*/
private string $className;
/**
* @var non-empty-string
*/
private string $methodName;
/**
* @param class-string | {
"filepath": "src/Framework/Attributes/DependsExternalUsingShallowClone.php",
"language": "php",
"file_size": 1246,
"cut_index": 518,
"middle_length": 229
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibilit... | ty-string $methodName
*/
public function __construct(string $methodName)
{
$this->methodName = $methodName;
}
/**
* @return non-empty-string
*/
public function methodName(): string
{
return $this->met | e string $methodName;
/**
* @param non-emp | {
"filepath": "src/Framework/Attributes/DependsUsingDeepClone.php",
"language": "php",
"file_size": 931,
"cut_index": 606,
"middle_length": 52
} |
declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutabl... | * @param non-empty-string $methodName
*/
public function __construct(string $className, string $methodName)
{
$this->className = $className;
$this->methodName = $methodName;
}
/**
* @return class-string
| ly class DependsExternal
{
/**
* @var class-string
*/
private string $className;
/**
* @var non-empty-string
*/
private string $methodName;
/**
* @param class-string $className
| {
"filepath": "src/Framework/Attributes/DependsExternal.php",
"language": "php",
"file_size": 1229,
"cut_index": 518,
"middle_length": 229
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibilit... | -string $className
*/
public function __construct(string $className)
{
$this->className = $className;
}
/**
* @return class-string
*/
public function className(): string
{
return $this->className;
| vate string $className;
/**
* @param class | {
"filepath": "src/Framework/Attributes/DependsOnClassUsingDeepClone.php",
"language": "php",
"file_size": 919,
"cut_index": 606,
"middle_length": 52
} |
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments P... | */
private string $text;
/**
* @param non-empty-string $text
*/
public function __construct(string $text)
{
$this->text = $text;
}
/**
* @return non-empty-string
*/
public function text(): stri | class Ticket
{
/**
* @var non-empty-string
| {
"filepath": "src/Framework/Attributes/Ticket.php",
"language": "php",
"file_size": 900,
"cut_index": 547,
"middle_length": 52
} |
* 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.
*/
namespace PHPUnit\Framework\TestStatus;
/**
* @immutable
*
* @no-named-arguments Parameter names a... | {
return true;
}
public function asInt(): int
{
return 5;
}
public function asString(): string
{
return 'risky';
}
/**
* @return non-negative-int
*/
public function sortWeight(): int
| nds Known
{
public function isRisky(): true
| {
"filepath": "src/Framework/TestStatus/Risky.php",
"language": "php",
"file_size": 887,
"cut_index": 547,
"middle_length": 52
} |
s=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Constraint;
use function is_array;
use Closure;
use ReflectionF... | allback)
{
$this->callback = $callback;
}
/**
* Returns a string representation of the constraint.
*/
public function toString(): string
{
return 'is accepted by specified callback';
}
public function | onstraint
{
/**
* @var callable(CallbackInput): bool
*/
private readonly mixed $callback;
/**
* @param callable(CallbackInput $input): bool $callback
*/
public function __construct(callable $c | {
"filepath": "src/Framework/Constraint/Callback.php",
"language": "php",
"file_size": 1545,
"cut_index": 537,
"middle_length": 229
} |
e(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
... | * @param class-string $className
* @param non-empty-string $propertyName
*/
public function __construct(string $className, string $propertyName)
{
$this->className = $className;
$this->propertyName = $propertyName;
| TABLE)]
final readonly class ExcludeStaticPropertyFromBackup
{
/**
* @var class-string
*/
private string $className;
/**
* @var non-empty-string
*/
private string $propertyName;
/**
| {
"filepath": "src/Framework/Attributes/ExcludeStaticPropertyFromBackup.php",
"language": "php",
"file_size": 1287,
"cut_index": 524,
"middle_length": 229
} |
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments P... | */
private string $name;
/**
* @param non-empty-string $name
*/
public function __construct(string $name)
{
$this->name = $name;
}
/**
* @return non-empty-string
*/
public function name(): strin | class Group
{
/**
* @var non-empty-string
| {
"filepath": "src/Framework/Attributes/Group.php",
"language": "php",
"file_size": 899,
"cut_index": 547,
"middle_length": 52
} |
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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter nam... | non-negative-int $priority
*/
public function __construct(int $priority = 0)
{
$this->priority = $priority;
}
/**
* @return non-negative-int
*/
public function priority(): int
{
return $this->priority | /
private int $priority;
/**
* @param | {
"filepath": "src/Framework/Attributes/PostCondition.php",
"language": "php",
"file_size": 877,
"cut_index": 559,
"middle_length": 52
} |
* (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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by t... | g $functionName;
/**
* @param non-empty-string $functionName
*/
public function __construct(string $functionName)
{
$this->functionName = $functionName;
}
/**
* @return non-empty-string
*/
public functi | * @var non-empty-string
*/
private strin | {
"filepath": "src/Framework/Attributes/RequiresFunction.php",
"language": "php",
"file_size": 966,
"cut_index": 582,
"middle_length": 52
} |
e(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
... | /**
* @param non-empty-string $environmentVariableName
* @param ?non-empty-string $value
*/
public function __construct(string $environmentVariableName, null|string $value = null)
{
$this->environmentVariableName = $envi | TABLE)]
final readonly class RequiresEnvironmentVariable
{
/**
* @var non-empty-string
*/
private string $environmentVariableName;
/**
* @var ?non-empty-string
*/
private null|string $value;
| {
"filepath": "src/Framework/Attributes/RequiresEnvironmentVariable.php",
"language": "php",
"file_size": 1381,
"cut_index": 524,
"middle_length": 229
} |
<?php declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @im... | public function __construct(string $globalVariableName)
{
$this->globalVariableName = $globalVariableName;
}
/**
* @return non-empty-string
*/
public function globalVariableName(): string
{
return $this->gl | te::IS_REPEATABLE)]
final readonly class ExcludeGlobalVariableFromBackup
{
/**
* @var non-empty-string
*/
private string $globalVariableName;
/**
* @param non-empty-string $globalVariableName
*/
| {
"filepath": "src/Framework/Attributes/ExcludeGlobalVariableFromBackup.php",
"language": "php",
"file_size": 1023,
"cut_index": 512,
"middle_length": 229
} |
* (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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by t... | ty-string $messagePattern
*/
public function __construct(null|string $messagePattern = null)
{
$this->messagePattern = $messagePattern;
}
/**
* @return null|non-empty-string
*/
public function messagePattern(): ? | $messagePattern;
/**
* @param null|non-emp | {
"filepath": "src/Framework/Attributes/IgnorePhpunitWarnings.php",
"language": "php",
"file_size": 949,
"cut_index": 582,
"middle_length": 52
} |
e(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
... | ng $className
* @param non-empty-string $methodName
*/
public function __construct(string $className, string $methodName)
{
$this->className = $className;
$this->methodName = $methodName;
}
/**
* @return | TABLE)]
final readonly class RequiresMethod
{
/**
* @var class-string
*/
private string $className;
/**
* @var non-empty-string
*/
private string $methodName;
/**
* @param class-stri | {
"filepath": "src/Framework/Attributes/RequiresMethod.php",
"language": "php",
"file_size": 1254,
"cut_index": 524,
"middle_length": 229
} |
<?php declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @im... | onstruct(null|string $messagePattern = null)
{
$this->messagePattern = $messagePattern;
}
/**
* @return null|non-empty-string
*/
public function messagePattern(): ?string
{
return $this->messagePattern;
}
| te::IS_REPEATABLE)]
final readonly class IgnoreDeprecations
{
/** @var null|non-empty-string */
private ?string $messagePattern;
/**
* @param null|non-empty-string $messagePattern
*/
public function __c | {
"filepath": "src/Framework/Attributes/IgnoreDeprecations.php",
"language": "php",
"file_size": 999,
"cut_index": 512,
"middle_length": 229
} |
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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter nam... | on-negative-int $priority
*/
public function __construct(int $priority = 0)
{
$this->priority = $priority;
}
/**
* @return non-negative-int
*/
public function priority(): int
{
return $this->priority; |
private int $priority;
/**
* @param n | {
"filepath": "src/Framework/Attributes/PreCondition.php",
"language": "php",
"file_size": 876,
"cut_index": 559,
"middle_length": 52
} |
e(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Constraint;
/**
* @no-named-arguments Parameter n... | precedence.
*
* @see https://www.php.net/manual/en/language.operators.precedence.php
*/
public function precedence(): int
{
return 22;
}
/**
* Evaluates the constraint for parameter $other. Returns true if the
| lf
{
return new self(...$constraints);
}
/**
* Returns the name of this operator.
*/
public function operator(): string
{
return 'and';
}
/**
* Returns this operator's | {
"filepath": "src/Framework/Constraint/Operator/LogicalAnd.php",
"language": "php",
"file_size": 1348,
"cut_index": 524,
"middle_length": 229
} |
* (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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by t... | ;
/**
* @param non-empty-string $regularExpression
*/
public function __construct(string $regularExpression)
{
$this->regularExpression = $regularExpression;
}
/**
* @return non-empty-string
*/
public f | string
*/
private string $regularExpression | {
"filepath": "src/Framework/Attributes/RequiresOperatingSystem.php",
"language": "php",
"file_size": 981,
"cut_index": 582,
"middle_length": 52
} |
* (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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by t... | * @param non-empty-string $versionRequirement
*/
public function __construct(string $versionRequirement)
{
$this->versionRequirement = $versionRequirement;
}
/**
* @return non-empty-string
*/
public function | */
private string $versionRequirement;
/**
| {
"filepath": "src/Framework/Attributes/RequiresPhp.php",
"language": "php",
"file_size": 976,
"cut_index": 582,
"middle_length": 52
} |
* (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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by t... | /**
* @param non-empty-string $versionRequirement
*/
public function __construct(string $versionRequirement)
{
$this->versionRequirement = $versionRequirement;
}
/**
* @return non-empty-string
*/
public func | */
private string $versionRequirement;
| {
"filepath": "src/Framework/Attributes/RequiresPhpunit.php",
"language": "php",
"file_size": 980,
"cut_index": 582,
"middle_length": 52
} |
?php declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
use PHPUnit\... | g<Extension> $extensionClass
*/
public function __construct(string $extensionClass)
{
$this->extensionClass = $extensionClass;
}
/**
* @return class-string<Extension>
*/
public function extensionClass(): string
| SS | Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
final readonly class RequiresPhpunitExtension
{
/**
* @var class-string<Extension>
*/
private string $extensionClass;
/**
* @param class-strin | {
"filepath": "src/Framework/Attributes/RequiresPhpunitExtension.php",
"language": "php",
"file_size": 1049,
"cut_index": 513,
"middle_length": 229
} |
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments P... | /**
* @param non-empty-string $methodName
*/
public function __construct(string $methodName)
{
$this->methodName = $methodName;
}
/**
* @return non-empty-string
*/
public function methodName(): string
| y-string
*/
private string $methodName;
| {
"filepath": "src/Framework/Attributes/TestDoxFormatter.php",
"language": "php",
"file_size": 899,
"cut_index": 547,
"middle_length": 52
} |
declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutabl... | ty-string $name
*/
public function __construct(array $data, ?string $name = null)
{
$this->data = $data;
$this->name = $name;
}
/**
* @return array<mixed>
*/
public function data(): array
{
re | ly class TestWith
{
/**
* @var array<mixed>
*/
private array $data;
/**
* @var ?non-empty-string
*/
private ?string $name;
/**
* @param array<mixed> $data
* @param ?non-emp | {
"filepath": "src/Framework/Attributes/TestWith.php",
"language": "php",
"file_size": 1155,
"cut_index": 518,
"middle_length": 229
} |
declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutabl... | ?non-empty-string $name
*/
public function __construct(string $json, ?string $name = null)
{
$this->json = $json;
$this->name = $name;
}
/**
* @return non-empty-string
*/
public function json(): string
| ly class TestWithJson
{
/**
* @var non-empty-string
*/
private string $json;
/**
* @var ?non-empty-string
*/
private ?string $name;
/**
* @param non-empty-string $json
* @param | {
"filepath": "src/Framework/Attributes/TestWithJson.php",
"language": "php",
"file_size": 1170,
"cut_index": 518,
"middle_length": 229
} |
<?php declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @im... | nstruct(string $operatingSystemFamily)
{
$this->operatingSystemFamily = $operatingSystemFamily;
}
/**
* @return non-empty-string
*/
public function operatingSystemFamily(): string
{
return $this->operatingSyst | eadonly class RequiresOperatingSystemFamily
{
/**
* @var non-empty-string
*/
private string $operatingSystemFamily;
/**
* @param non-empty-string $operatingSystemFamily
*/
public function __co | {
"filepath": "src/Framework/Attributes/RequiresOperatingSystemFamily.php",
"language": "php",
"file_size": 1015,
"cut_index": 512,
"middle_length": 229
} |
declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutabl... | pty-string $setting
* @param non-empty-string $value
*/
public function __construct(string $setting, string $value)
{
$this->setting = $setting;
$this->value = $value;
}
/**
* @return non-empty-string
| _REPEATABLE)]
final readonly class RequiresSetting
{
/**
* @var non-empty-string
*/
private string $setting;
/**
* @var non-empty-string
*/
private string $value;
/**
* @param non-em | {
"filepath": "src/Framework/Attributes/RequiresSetting.php",
"language": "php",
"file_size": 1215,
"cut_index": 518,
"middle_length": 229
} |
declare(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutabl... | mpty-string $methodName
*/
public function __construct(string $className, string $methodName)
{
$this->className = $className;
$this->methodName = $methodName;
}
/**
* @return class-string
*/
public func | ternal
{
/**
* @var class-string
*/
private string $className;
/**
* @var non-empty-string
*/
private string $methodName;
/**
* @param class-string $className
* @param non-e | {
"filepath": "src/Framework/Attributes/TestDoxFormatterExternal.php",
"language": "php",
"file_size": 1211,
"cut_index": 518,
"middle_length": 229
} |
e(strict_types=1);
/*
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
... | * @param non-empty-string $extension
* @param null|non-empty-string $versionRequirement
*/
public function __construct(string $extension, ?string $versionRequirement = null)
{
$this->extension = $extension;
| TABLE)]
final readonly class RequiresPhpExtension
{
/**
* @var non-empty-string
*/
private string $extension;
/**
* @var null|non-empty-string
*/
private ?string $versionRequirement;
/**
| {
"filepath": "src/Framework/Attributes/RequiresPhpExtension.php",
"language": "php",
"file_size": 1362,
"cut_index": 524,
"middle_length": 229
} |
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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter nam... | /**
* @param non-empty-string $text
*/
public function __construct(string $text)
{
$this->text = $text;
}
/**
* @return non-empty-string
*/
public function text(): string
{
return $this->text;
| -empty-string
*/
private string $text;
| {
"filepath": "src/Framework/Attributes/TestDox.php",
"language": "php",
"file_size": 874,
"cut_index": 559,
"middle_length": 52
} |
* 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.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments P... | className;
/**
* @param class-string $className
*/
public function __construct(string $className)
{
$this->className = $className;
}
/**
* @return class-string
*/
public function className(): string
| * @var class-string
*/
private string $ | {
"filepath": "src/Framework/Attributes/UsesClass.php",
"language": "php",
"file_size": 899,
"cut_index": 547,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibilit... | g $functionName
*/
public function __construct(string $functionName)
{
$this->functionName = $functionName;
}
/**
* @return non-empty-string
*/
public function functionName(): string
{
return $this->f | functionName;
/**
* @param non-empty-strin | {
"filepath": "src/Framework/Attributes/UsesFunction.php",
"language": "php",
"file_size": 935,
"cut_index": 606,
"middle_length": 52
} |
n <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Attributes;
use Attribute;
/**
* @immutable
*
* @no-named-arguments Parameter names are not covered by the backward compatibilit... | $namespace
*/
public function __construct(string $namespace)
{
$this->namespace = $namespace;
}
/**
* @return non-empty-string
*/
public function namespace(): string
{
return $this->namespace;
}
} | $namespace;
/**
* @param non-empty-string | {
"filepath": "src/Framework/Attributes/UsesNamespace.php",
"language": "php",
"file_size": 915,
"cut_index": 606,
"middle_length": 52
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.