prefix stringlengths 512 512 | suffix stringlengths 256 256 | middle stringlengths 14 229 | meta dict |
|---|---|---|---|
* (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\TestFixture\Event\MyExtension;
use PHPUnit\Runner\Extension\Extension;
use PHPUnit\Runner\Extension\Facade;
use PHPUni... | rameters): void
{
$message = 'the-default-message';
if ($parameters->has('message')) {
$message = $parameters->get('message');
}
$facade->registerSubscriber(
new MyExecutionFinishedSubscriber(
| nfiguration, Facade $facade, ParameterCollection $pa | {
"filepath": "tests/end-to-end/extension-xml/_files/extension-bootstrap/src/MyExtensionBootstrap.php",
"language": "php",
"file_size": 949,
"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\TestFixture\Event\MyExtension;
use PHPUnit\Runner\Ext... | n
{
public function bootstrap(Configuration $configuration, Facade $facade, ParameterCollection $parameters): void
{
$facade->registerSubscriber(
new MyExecutionFinishedSubscriber(
'the-message',
),
| ments Extensio | {
"filepath": "tests/end-to-end/extension-xml/_files/duplicate-extension/src/MyExtensionBootstrap.php",
"language": "php",
"file_size": 805,
"cut_index": 517,
"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\TestFixture\Phar;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framewo... | assertSame('Hello world!', (new Greeter)->greet());
}
#[RunInSeparateProcess]
#[Ticket('https://github.com/sebastianbergmann/phpunit/issues/4412')]
public function testGreetsInIsolation(): void
{
$this->assertSame('Hello world! | ic function testGreets(): void
{
$this-> | {
"filepath": "tests/end-to-end/phar/tests/standard/GreeterTest.php",
"language": "php",
"file_size": 891,
"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\TestFixture\Event;
use const E_USER_DEPRECATED;
use function trigger_error;
use PHPUnit\Framework\A... | ction testExpectationsOnExactDeprecationMessagesWorkWhenExpectedDeprecationsAreTriggered(): void
{
$this->expectUserDeprecationMessage('message');
$this->expectUserDeprecationMessage('another message');
@trigger_error('message' | eprecationMessageWorksWhenExpectedDeprecationIsTriggered(): void
{
$this->expectUserDeprecationMessage('message');
@trigger_error('message', E_USER_DEPRECATED);
}
#[IgnoreDeprecations]
public fun | {
"filepath": "tests/end-to-end/generic/_files/TestForDeprecatedFeatureTest.php",
"language": "php",
"file_size": 2843,
"cut_index": 563,
"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\TestFixture\TestDox;
use PHPUnit\Framework\Attributes\DataProvider;
use P... | true,
Foo::BAR,
Bar::FOO,
],
];
}
#[DataProvider('provider')]
#[TestDox('Text from method-level TestDox metadata for successful test with placeholders ($a, $b, $c, $d, $e, $f, $g)')]
| dersTest extends TestCase
{
public static function provider(): array
{
return [
0 => [
'string',
0,
0.0,
['key' => 'value'],
| {
"filepath": "tests/end-to-end/testdox/_files/DataProviderWithNumericDataSetNameAndMetadataWithPlaceholdersTest.php",
"language": "php",
"file_size": 1582,
"cut_index": 537,
"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\TestFixture\Issue5884;
use function error_get_last;
us... | ception.
$download = @fopen($filename, 'wb');
if ($download === false) {
$error = error_get_last();
if (!is_array($error)) {
// Shouldn't be possible, but can happen in test situations.
| a compile error to demonstrate the issue.
return (bool) @preg_match('/^.[/u', 'a');
}
public static function openFile($filename): void
{
// Silenced the PHP native warning in favour of throwing an ex | {
"filepath": "tests/end-to-end/regression/5884/src/Foo.php",
"language": "php",
"file_size": 1141,
"cut_index": 518,
"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\TestFixture\Issue6465;
use PHPUnit\Framework\Attributes\RunInSeparateProcess;
use PHPUnit\Frame... | this->assertNotSame(1, $_SERVER['REQUEST_TIME']);
}
#[RunInSeparateProcess]
public function testScriptFilenameIsNotInheritedFromParent(): void
{
$this->assertNotSame('/fake/parent/script.php', $_SERVER['SCRIPT_FILENAME']);
}
}
| Same(1.0, $_SERVER['REQUEST_TIME_FLOAT']);
$ | {
"filepath": "tests/end-to-end/regression/6465/Issue6465Test.php",
"language": "php",
"file_size": 867,
"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.
*/
$globalString = 'Hello';
$globalIntTruthy = 1;
$globalI... | = ['foo'];
$globalNestedArray = [['foo']];
$globalObject = (object) ['foo' => 'bar'];
$globalObjectWithBackSlashString = (object) ['foo' => 'back\\slash'];
$globalObjectWithDoubleBackS | = null;
$globalArray | {
"filepath": "tests/end-to-end/regression/1335/bootstrap1335.php",
"language": "php",
"file_size": 905,
"cut_index": 547,
"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\TestFixture\Issue6408;
use IteratorAggregate;
use ... | {
public function __construct()
{
}
public function getIterator(): Traversable
{
return $this;
}
},
);
}
} | new class implements IteratorAggregate
| {
"filepath": "tests/end-to-end/regression/6476/Issue6476Test.php",
"language": "php",
"file_size": 823,
"cut_index": 514,
"middle_length": 52
} |
hp 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\TestFixture\DiffContext;
use PHPUnit\Framework\Test... | ',
'key10' => 'val10',
'key11' => 'val11',
'key12' => 'val12',
'key13' => 'val13',
'key14' => 'val14',
'key15' => 'val15',
];
$actual = $expected;
$ac | val02',
'key03' => 'val03',
'key04' => 'val04',
'key05' => 'val05',
'key06' => 'val06',
'key07' => 'val07',
'key08' => 'val08',
'key09' => 'val09 | {
"filepath": "tests/end-to-end/cli/diff-context/_files/EqualityDiffContextTest.php",
"language": "php",
"file_size": 1085,
"cut_index": 515,
"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\TestFixture\Event\MyExtension;
use const PHP_EOL;
use... | e string $message;
public function __construct(string $message)
{
$this->message = $message;
}
public function notify(ExecutionFinished $event): void
{
print __METHOD__ . PHP_EOL;
print $this->message . PHP_EOL | r
{
privat | {
"filepath": "tests/end-to-end/extension-xml/_files/extension-bootstrap/src/MyExecutionFinishedSubscriber.php",
"language": "php",
"file_size": 797,
"cut_index": 517,
"middle_length": 14
} |
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\TestFixture\TestDox;
use PHPUnit\Framework\Attributes\DataPr... | true,
],
];
}
#[DataProvider('provider')]
#[TestDox('Text from method-level TestDox metadata for successful test')]
public function testSomethingThatWorks(string $a, int $b, float $c, array $d, bool $e): void
{
| aTest extends TestCase
{
public static function provider(): array
{
return [
0 => [
'string',
0,
0.0,
['key' => 'value'],
| {
"filepath": "tests/end-to-end/testdox/_files/DataProviderWithNumericDataSetNameAndMetadataTest.php",
"language": "php",
"file_size": 1388,
"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\TestFixture;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Depends;
use PHPUnit\Fram... | ts(): stdClass
{
$this->assertStringEndsWith('/', '/');
return new stdClass;
}
#[Depends('testConstants')]
#[DataProvider('dataSelectOperatorsProvider')]
public function testDependsRequire(string $val, stdClass $obj): | ],
];
}
public function testConstan | {
"filepath": "tests/end-to-end/regression/3156/Issue3156Test.php",
"language": "php",
"file_size": 956,
"cut_index": 582,
"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\TestFixture;
use function restore_error_handler;
use function restore_exception_handler;
use functi... | ;
$this->assertTrue(true);
}
public function testAddedErrorHandler(): void
{
$previous = set_error_handler($this->addedErrorHandler(...));
$this->assertInstanceOf(ErrorHandler::class, $previous);
$this->assertT | ction testAddedAndRemovedErrorHandler(): void
{
$previous = set_error_handler($this->addedAndRemovedErrorHandler(...));
restore_error_handler();
$this->assertInstanceOf(ErrorHandler::class, $previous) | {
"filepath": "tests/end-to-end/regression/5592/Issue5592Test.php",
"language": "php",
"file_size": 2310,
"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\TestFixture\Basic;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\R... | :class);
$this->assertTrue(true);
}
public function testFailure(): void
{
$this->assertTrue(false);
}
public function testError(): void
{
throw new RuntimeException;
}
public function testIncomple | eption;
#[CoversClass('Foo')]
#[UsesClass('Bar')]
#[TestDox('Test result status with and without message')]
class StatusTest extends TestCase
{
public function testSuccess(): void
{
$this->createMock(AnInterface: | {
"filepath": "tests/end-to-end/logging/_files/status/tests/StatusTest.php",
"language": "php",
"file_size": 2109,
"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\TestFixture\Event;
use const E_USER_DEPRECATED;
use function trigger_error;
use PHPUnit\Framework\A... | ;
@trigger_error('message', E_USER_DEPRECATED);
}
#[IgnoreDeprecations]
public function testExpectationsOnExactDeprecationMessagesWorkWhenExpectedDeprecationsAreTriggered(): void
{
$this->expectUserDeprecationMessage('mess | InIsolationTest extends TestCase
{
#[IgnoreDeprecations]
public function testExpectationOnExactDeprecationMessageWorksWhenExpectedDeprecationIsTriggered(): void
{
$this->expectUserDeprecationMessage('message') | {
"filepath": "tests/end-to-end/generic/_files/TestForDeprecatedFeatureInIsolationTest.php",
"language": "php",
"file_size": 2947,
"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\TestFixture;
use Exception;
use PHPUnit\Framework\Test... | nMockCallbackIsNotSwallowedByCodeUnderTest(): void
{
$mock = $this->createMock(Foo6372::class);
$mock->expects($this->once())
->method('doFoo')
->willReturnCallback(function (string $param): void
{
| tion doBar(string $param): void
{
try {
$this->foo->doFoo($param);
} catch (Exception $e) {
}
}
}
final class Issue6372Test extends TestCase
{
public function testAssertionFailureI | {
"filepath": "tests/end-to-end/regression/6372/Issue6372Test.php",
"language": "php",
"file_size": 1148,
"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\TestFixture\Event\MyExtension;
use const PHP_EOL;
use... | y string $message;
public function __construct(string $message)
{
$this->message = $message;
}
public function notify(ExecutionFinished $event): void
{
print __METHOD__ . PHP_EOL;
print $this->message . PHP_EOL | rivate readonl | {
"filepath": "tests/end-to-end/extension-xml/_files/duplicate-extension/src/MyExecutionFinishedSubscriber.php",
"language": "php",
"file_size": 797,
"cut_index": 517,
"middle_length": 14
} |
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\TestFixture;
use const PHP_EOL;
use function file_get_... | schema/otr.xsd')) {
print 'Generated XML document does not validate against Open Test Reporting schemas:' . PHP_EOL . PHP_EOL;
foreach (libxml_get_errors() as $error) {
printf(
'- Line %d: %s' . PHP_EOL,
| _and_print(string $logfile): void
{
libxml_use_internal_errors(true);
$document = new DOMDocument;
$document->load($logfile);
if (!$document->schemaValidate(__DIR__ . '/../../../../src/Logging/OpenTestReporting/ | {
"filepath": "tests/end-to-end/logging/open-test-reporting/validate_and_print.php",
"language": "php",
"file_size": 1190,
"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\TestFixture\TestDox;
use PHPUnit\Framework\Attributes\... | thingThatWorks(string $a, int $b, float $c, array $d, bool $e): void
{
$this->assertTrue(true);
}
#[DataProvider('provider')]
public function testSomethingThatDoesNotWork(string $a, int $b, float $c, array $d, bool $e): void
{
| 0 => [
'string',
0,
0.0,
['key' => 'value'],
true,
],
];
}
#[DataProvider('provider')]
public function testSome | {
"filepath": "tests/end-to-end/testdox/_files/DataProviderWithNumericDataSetNameTest.php",
"language": "php",
"file_size": 1129,
"cut_index": 518,
"middle_length": 229
} |
\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
use stdClass;
#[CoversMethod(Assert::class, 'assertArraysAreIdenticalIgnoringOrder')]
#[TestDox('assertArraysAreIdenticalIgnoringOrder()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertArraysA... | ],
['a', 'b', 'c'],
],
'explicit integer keys' => [
[1 => 'a', 2 => 'b', 4 => 'c'],
[1 => 'a', 2 => 'b', 4 => 'c'],
],
'explicit negative integer keys' => [
| ider(): array
{
$object = new stdClass;
return [
'empty arrays' => [
[],
[],
],
'implicit integer keys' => [
['a', 'b', 'c' | {
"filepath": "tests/unit/Framework/Assert/assertArraysAreIdenticalIgnoringOrderTest.php",
"language": "php",
"file_size": 9866,
"cut_index": 921,
"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;
use PHPUnit\Framework\Attributes\CoversMethod;
us... |
{
#[DataProviderExternal(assertContainsOnlyInstancesOfTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(string $type, iterable $haystack): void
{
$this->assertContainsNotOnlyInstancesOf($type, $ | ssert::class, 'assertContainsNotOnlyInstancesOf')]
#[TestDox('assertContainsNotOnlyInstancesOf()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyInstancesOfTest extends TestCase | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyInstancesOfTest.php",
"language": "php",
"file_size": 1359,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | ernal(assertContainsOnlyIntTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyInt($haystack);
}
#[DataProviderExternal(assertContainsOn | ssert::class, 'assertContainsNotOnlyInt')]
#[TestDox('assertContainsNotOnlyInt()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyIntTest extends TestCase
{
#[DataProviderExt | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyIntTest.php",
"language": "php",
"file_size": 1261,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | DataProviderExternal(assertContainsOnlyIterableTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyIterable($haystack);
}
#[DataProvider | ssert::class, 'assertContainsNotOnlyIterable')]
#[TestDox('assertContainsNotOnlyIterable()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyIterableTest extends TestCase
{
#[ | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyIterableTest.php",
"language": "php",
"file_size": 1296,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | External(assertContainsOnlyNullTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyNull($haystack);
}
#[DataProviderExternal(assertConta | ssert::class, 'assertContainsNotOnlyNull')]
#[TestDox('assertContainsNotOnlyNull()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyNullTest extends TestCase
{
#[DataProvider | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyNullTest.php",
"language": "php",
"file_size": 1268,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | aProviderExternal(assertContainsOnlyNumericTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyNumeric($haystack);
}
#[DataProviderExter | ssert::class, 'assertContainsNotOnlyNumeric')]
#[TestDox('assertContainsNotOnlyNumeric()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyNumericTest extends TestCase
{
#[Dat | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyNumericTest.php",
"language": "php",
"file_size": 1289,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | oviderExternal(assertContainsOnlyObjectTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyObject($haystack);
}
#[DataProviderExternal(a | ssert::class, 'assertContainsNotOnlyObject')]
#[TestDox('assertContainsNotOnlyObject()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyObjectTest extends TestCase
{
#[DataPr | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyObjectTest.php",
"language": "php",
"file_size": 1282,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | DataProviderExternal(assertContainsOnlyResourceTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyResource($haystack);
}
#[DataProvider | ssert::class, 'assertContainsNotOnlyResource')]
#[TestDox('assertContainsNotOnlyResource()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyResourceTest extends TestCase
{
#[ | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyResourceTest.php",
"language": "php",
"file_size": 1296,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | oviderExternal(assertContainsOnlyScalarTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyScalar($haystack);
}
#[DataProviderExternal(a | ssert::class, 'assertContainsNotOnlyScalar')]
#[TestDox('assertContainsNotOnlyScalar()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyScalarTest extends TestCase
{
#[DataPr | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyScalarTest.php",
"language": "php",
"file_size": 1282,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | oviderExternal(assertContainsOnlyStringTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyString($haystack);
}
#[DataProviderExternal(a | ssert::class, 'assertContainsNotOnlyString')]
#[TestDox('assertContainsNotOnlyString()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyStringTest extends TestCase
{
#[DataPr | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyStringTest.php",
"language": "php",
"file_size": 1282,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | : iterable<mixed>}>
*/
public static function successProvider(): array
{
return [
[[[]]],
];
}
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public static function failureProvider | ContainsOnlyArray')]
#[TestDox('assertContainsOnlyArray()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyArrayTest extends TestCase
{
/**
* @return non-empty-list<array{0 | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyArrayTest.php",
"language": "php",
"file_size": 1538,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | terable<mixed>}>
*/
public static function successProvider(): array
{
return [
[[true]],
];
}
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public static function failureProvider( | ContainsOnlyBool')]
#[TestDox('assertContainsOnlyBool()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyBoolTest extends TestCase
{
/**
* @return non-empty-list<array{0: i | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyBoolTest.php",
"language": "php",
"file_size": 1535,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | t<array{0: iterable<mixed>}>
*/
public static function successProvider(): array
{
$callable = static function (): void
{};
return [
[[$callable]],
];
}
/**
* @return non-empty-list<arr | ContainsOnlyCallable')]
#[TestDox('assertContainsOnlyCallable()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyCallableTest extends TestCase
{
/**
* @return non-empty-lis | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyCallableTest.php",
"language": "php",
"file_size": 1618,
"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\Framework;
use function fclose;
use function fopen;
use PHPUnit\Framework... | est extends TestCase
{
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public static function successProvider(): array
{
$resource = fopen(__FILE__, 'r');
fclose($resource);
return [
[[ | x;
#[CoversMethod(Assert::class, 'assertContainsOnlyClosedResource')]
#[TestDox('assertContainsOnlyClosedResource()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyClosedResourceT | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyClosedResourceTest.php",
"language": "php",
"file_size": 1702,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | : iterable<mixed>}>
*/
public static function successProvider(): array
{
return [
[[0.0]],
];
}
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public static function failureProvide | ContainsOnlyFloat')]
#[TestDox('assertContainsOnlyFloat()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyFloatTest extends TestCase
{
/**
* @return non-empty-list<array{0 | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyFloatTest.php",
"language": "php",
"file_size": 1539,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | * @return non-empty-list<array{0: class-string, 1: iterable<mixed>}>
*/
public static function successProvider(): array
{
return [
[stdClass::class, [new stdClass]],
];
}
/**
* @return non-empty-list<a | class, 'assertContainsOnlyInstancesOf')]
#[TestDox('assertContainsOnlyInstancesOf()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyInstancesOfTest extends TestCase
{
/**
| {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyInstancesOfTest.php",
"language": "php",
"file_size": 1702,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | able<mixed>}>
*/
public static function successProvider(): array
{
return [
[[0]],
];
}
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public static function failureProvider(): arr | ContainsOnlyInt')]
#[TestDox('assertContainsOnlyInt()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyIntTest extends TestCase
{
/**
* @return non-empty-list<array{0: iter | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyIntTest.php",
"language": "php",
"file_size": 1527,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | t<array{0: iterable<mixed>}>
*/
public static function successProvider(): array
{
return [
[[[]]],
];
}
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public static function failur | ContainsOnlyIterable')]
#[TestDox('assertContainsOnlyIterable()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyIterableTest extends TestCase
{
/**
* @return non-empty-lis | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyIterableTest.php",
"language": "php",
"file_size": 1553,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | terable<mixed>}>
*/
public static function successProvider(): array
{
return [
[[null]],
];
}
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public static function failureProvider( | ContainsOnlyNull')]
#[TestDox('assertContainsOnlyNull()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyNullTest extends TestCase
{
/**
* @return non-empty-list<array{0: i | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyNullTest.php",
"language": "php",
"file_size": 1535,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | rray{0: iterable<mixed>}>
*/
public static function successProvider(): array
{
return [
[['1.0']],
];
}
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public static function failur | ContainsOnlyNumeric')]
#[TestDox('assertContainsOnlyNumeric()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyNumericTest extends TestCase
{
/**
* @return non-empty-list<a | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyNumericTest.php",
"language": "php",
"file_size": 1551,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | mpty-list<array{0: iterable<mixed>}>
*/
public static function successProvider(): array
{
return [
[[new stdClass]],
];
}
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public stat | class, 'assertContainsOnlyObject')]
#[TestDox('assertContainsOnlyObject()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyObjectTest extends TestCase
{
/**
* @return non-e | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyObjectTest.php",
"language": "php",
"file_size": 1567,
"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\Framework;
use function fopen;
use PHPUnit\Framework\Attributes\CoversMet... | return non-empty-list<array{0: iterable<mixed>}>
*/
public static function successProvider(): array
{
$resource = fopen(__FILE__, 'r');
return [
[[$resource]],
];
}
/**
* @return non-empty-lis | sert::class, 'assertContainsOnlyResource')]
#[TestDox('assertContainsOnlyResource()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyResourceTest extends TestCase
{
/**
* @ | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyResourceTest.php",
"language": "php",
"file_size": 1623,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | y{0: iterable<mixed>}>
*/
public static function successProvider(): array
{
return [
[['string']],
];
}
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public static function failur | ContainsOnlyScalar')]
#[TestDox('assertContainsOnlyScalar()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyScalarTest extends TestCase
{
/**
* @return non-empty-list<arra | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyScalarTest.php",
"language": "php",
"file_size": 1549,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | y{0: iterable<mixed>}>
*/
public static function successProvider(): array
{
return [
[['string']],
];
}
/**
* @return non-empty-list<array{0: iterable<mixed>}>
*/
public static function failur | ContainsOnlyString')]
#[TestDox('assertContainsOnlyString()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsOnlyStringTest extends TestCase
{
/**
* @return non-empty-list<arra | {
"filepath": "tests/unit/Framework/Assert/assertContainsOnlyStringTest.php",
"language": "php",
"file_size": 1549,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | terable<mixed>}>
*/
public static function successProvider(): array
{
$a = new stdClass;
return [
[0, [0]],
[0.0, [0.0]],
[false, [false]],
[null, [null]],
['string', | class, 'assertContains')]
#[TestDox('assertContains()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsTest extends TestCase
{
/**
* @return non-empty-list<array{0: mixed, 1: i | {
"filepath": "tests/unit/Framework/Assert/assertContainsTest.php",
"language": "php",
"file_size": 1910,
"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 PHPUnit\TestFixture\Generator\f;
use ArrayIterator;
use Countable;
use PHPU... | ('framework/assertions')]
final class assertCountTest extends TestCase
{
/**
* @return non-empty-list<array{0: int, 1: Countable|iterable<mixed>}>
*/
public static function successProvider(): array
{
return [
[2, [ | k\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
#[CoversMethod(Assert::class, 'assertCount')]
#[CoversClass(GeneratorNotSupportedException::class)]
#[TestDox('assertCount()')]
#[Small]
#[Group('framework')]
#[Group | {
"filepath": "tests/unit/Framework/Assert/assertCountTest.php",
"language": "php",
"file_size": 2193,
"cut_index": 563,
"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;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | oviderExternal(assertDirectoryExistsTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(string $directory): void
{
$this->assertDirectoryDoesNotExist($directory);
}
#[DataProviderExternal(asse | ssert::class, 'assertDirectoryDoesNotExist')]
#[TestDox('assertDirectoryDoesNotExist()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertDirectoryDoesNotExistTest extends TestCase
{
#[DataPr | {
"filepath": "tests/unit/Framework/Assert/assertDirectoryDoesNotExistTest.php",
"language": "php",
"file_size": 1276,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Fra... | empty-string}>
*/
public static function successProvider(): array
{
return [
[__DIR__],
];
}
/**
* @return non-empty-list<array{0: non-empty-string}>
*/
public static function failureProvider( | DirectoryExists')]
#[TestDox('assertDirectoryExists()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertDirectoryExistsTest extends TestCase
{
/**
* @return non-empty-list<array{0: non- | {
"filepath": "tests/unit/Framework/Assert/assertDirectoryExistsTest.php",
"language": "php",
"file_size": 1552,
"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\Framework;
use const DIRECTORY_SEPARATOR;
use const PHP_OS_FAMILY;
use fu... | up('framework/assertions')]
final class assertDirectoryIsNotReadableTest extends TestCase
{
private string $directory;
protected function setUp(): void
{
if (PHP_OS_FAMILY === 'Windows') {
$this->markTestSkipped('Cannot tes | ;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
#[CoversMethod(Assert::class, 'assertDirectoryIsNotReadable')]
#[TestDox('assertDirectoryIsNotReadable()')]
#[Small]
#[Group('framework')]
#[Gro | {
"filepath": "tests/unit/Framework/Assert/assertDirectoryIsNotReadableTest.php",
"language": "php",
"file_size": 1721,
"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\Framework;
use const DIRECTORY_SEPARATOR;
use const PHP_OS_FAMILY;
use fu... | up('framework/assertions')]
final class assertDirectoryIsNotWritableTest extends TestCase
{
private string $directory;
protected function setUp(): void
{
$this->directory = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid(__CLASS__ . | ;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
#[CoversMethod(Assert::class, 'assertDirectoryIsNotWritable')]
#[TestDox('assertDirectoryIsNotWritable()')]
#[Small]
#[Group('framework')]
#[Gro | {
"filepath": "tests/unit/Framework/Assert/assertDirectoryIsNotWritableTest.php",
"language": "php",
"file_size": 1650,
"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\Framework;
use const DIRECTORY_SEPARATOR;
use const PHP_OS_FAMILY;
use fu... | amework/assertions')]
final class assertDirectoryIsReadableTest extends TestCase
{
private string $directory;
protected function setUp(): void
{
$this->directory = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid(__CLASS__ . '_', true | ;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
#[CoversMethod(Assert::class, 'assertDirectoryIsReadable')]
#[TestDox('assertDirectoryIsReadable()')]
#[Small]
#[Group('framework')]
#[Group('fr | {
"filepath": "tests/unit/Framework/Assert/assertDirectoryIsReadableTest.php",
"language": "php",
"file_size": 1635,
"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\Framework;
use const DIRECTORY_SEPARATOR;
use const PHP_OS_FAMILY;
use fu... | amework/assertions')]
final class assertDirectoryIsWritableTest extends TestCase
{
private string $directory;
protected function setUp(): void
{
$this->directory = sys_get_temp_dir() . DIRECTORY_SEPARATOR . uniqid(__CLASS__ . '_', true | ;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
#[CoversMethod(Assert::class, 'assertDirectoryIsWritable')]
#[TestDox('assertDirectoryIsWritable()')]
#[Small]
#[Group('framework')]
#[Group('fr | {
"filepath": "tests/unit/Framework/Assert/assertDirectoryIsWritableTest.php",
"language": "php",
"file_size": 1635,
"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;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | TestCase
{
#[DataProviderExternal(assertMatchesRegularExpressionTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(string $pattern, string $string): void
{
$this->assertDoesNotMatchRegularExpress | ssert::class, 'assertDoesNotMatchRegularExpression')]
#[TestDox('assertDoesNotMatchRegularExpression()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertDoesNotMatchRegularExpressionTest extends | {
"filepath": "tests/unit/Framework/Assert/assertDoesNotMatchRegularExpressionTest.php",
"language": "php",
"file_size": 1376,
"cut_index": 524,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\TestFixture\O... | /
public static function successProvider(): array
{
$object = new stdClass;
return [
'empty arrays' => [
[],
[],
],
'implicit integer keys' => [
[ | p('framework')]
#[Group('framework/assertions')]
final class assertArraysHaveEqualValuesIgnoringOrderTest extends TestCase
{
/**
* @return non-empty-array<non-empty-string, array{0: array<mixed>, 1: array<mixed>}>
* | {
"filepath": "tests/unit/Framework/Assert/assertArraysHaveEqualValuesIgnoringOrderTest.php",
"language": "php",
"file_size": 8055,
"cut_index": 716,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
use stdClass;
#[CoversMe... | r(): array
{
$object = new stdClass;
return [
'empty arrays' => [
[],
[],
],
'implicit integer keys' => [
['a', 'b', 'c'],
['a', 'b', | ]
final class assertArraysHaveIdenticalValuesIgnoringOrderTest extends TestCase
{
/**
* @return non-empty-array<non-empty-string, array{0: array<mixed>, 1: array<mixed>}>
*/
public static function successProvide | {
"filepath": "tests/unit/Framework/Assert/assertArraysHaveIdenticalValuesIgnoringOrderTest.php",
"language": "php",
"file_size": 8917,
"cut_index": 716,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
use stdClass;
#[CoversMe... | stdClass;
return [
'empty arrays' => [
[],
[],
],
'implicit integer keys' => [
['a', 'b', 'c'],
['a', 'b', 'c'],
],
'expl | HaveIdenticalValuesTest extends TestCase
{
/**
* @return non-empty-array<non-empty-string, array{0: array<mixed>, 1: array<mixed>}>
*/
public static function successProvider(): array
{
$object = new | {
"filepath": "tests/unit/Framework/Assert/assertArraysHaveIdenticalValuesTest.php",
"language": "php",
"file_size": 8211,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | External(assertContainsOnlyBoolTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyBool($haystack);
}
#[DataProviderExternal(assertConta | ssert::class, 'assertContainsNotOnlyBool')]
#[TestDox('assertContainsNotOnlyBool()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyBoolTest extends TestCase
{
#[DataProvider | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyBoolTest.php",
"language": "php",
"file_size": 1268,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | DataProviderExternal(assertContainsOnlyCallableTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyCallable($haystack);
}
#[DataProvider | ssert::class, 'assertContainsNotOnlyCallable')]
#[TestDox('assertContainsNotOnlyCallable()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyCallableTest extends TestCase
{
#[ | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyCallableTest.php",
"language": "php",
"file_size": 1296,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | derExternal(assertContainsOnlyFloatTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyFloat($haystack);
}
#[DataProviderExternal(assert | ssert::class, 'assertContainsNotOnlyFloat')]
#[TestDox('assertContainsNotOnlyFloat()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyFloatTest extends TestCase
{
#[DataProvi | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyFloatTest.php",
"language": "php",
"file_size": 1275,
"cut_index": 524,
"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\Framework;
use function iterator_to_array;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\TestFixtu... | #[Small]
final class TestBuilderTest extends TestCase
{
public function testBuildsTestWithoutMetadataForIsolation(): void
{
$test = (new TestBuilder)->build(
new ReflectionClass(TestWithoutIsolationAttributes::class),
| es;
use PHPUnit\TestFixture\TestBuilder\TestWithMethodLevelIsolationAttributes;
use PHPUnit\TestFixture\TestBuilder\TestWithoutIsolationAttributes;
use ReflectionClass;
use ReflectionProperty;
#[CoversClass(TestBuilder::class)]
| {
"filepath": "tests/unit/Framework/TestBuilderTest.php",
"language": "php",
"file_size": 4409,
"cut_index": 614,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\Framework;
use function sprintf;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\ExcludeGlobalVariableFromBackup;
use PHPUnit\TestFixture\TestWithDifferentNames;
use Reflecti... | , []];
yield ["#0 with data ('foo', 'bar')", 0, ['foo', 'bar']];
yield ["@dataSet with data ('foo', 'bar')", 'dataSet', ['foo', 'bar']];
}
public static function setUpBeforeClass(): void
{
$GLOBALS['a'] = 'a';
| cted static int $testStatic = 456;
/**
* @return iterable<array{string, int|string, array<mixed>}>
*/
public static function provideDataSetAsStringWithDataProvider(): iterable
{
yield ['', 'dataSet' | {
"filepath": "tests/unit/Framework/TestCaseTest.php",
"language": "php",
"file_size": 5384,
"cut_index": 716,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\TestFixture\Success;
#[CoversClass(TestS... | $testSuite = TestSuite::empty('test suite name');
$subject = new TestSuiteIterator($testSuite);
$this->assertFalse($subject->valid());
}
public function testKeyForNonEmptyTestSuiteInitiallyReturnsZero(): void
{
$sub | e::empty('test suite name');
$subject = new TestSuiteIterator($testSuite);
$this->assertSame(0, $subject->key());
}
public function testValidForEmptyTestSuiteInitiallyReturnsFalse(): void
{
| {
"filepath": "tests/unit/Framework/TestSuiteIteratorTest.php",
"language": "php",
"file_size": 4914,
"cut_index": 614,
"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;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attr... | ual);
$this->assertArrayHasKey('serializableTrace', $actual);
$this->assertArrayHasKey('message', $actual);
$this->assertArrayHasKey('code', $actual);
$this->assertArrayHasKey('file', $actual);
$this->assertArrayHasK | ->__serialize();
$this->assertCount(5, $act | {
"filepath": "tests/unit/Framework/Exception/ExceptionTest.php",
"language": "php",
"file_size": 884,
"cut_index": 547,
"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\Framework;
use PHPUnit\Event\Emitter;
use PHPUnit\Event\Facade;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Small;
... | public function testEmitsErrorEventWhenStderrIsNotEmpty(): void
{
$emitter = $this->createMock(Emitter::class);
$emitter
->expects($this->once())
->method('testErrored')
->seal();
$this->pr | \TestResult\PassedTests;
#[CoversClass(ChildProcessResultProcessor::class)]
#[Small]
final class ChildProcessResultProcessorTest extends TestCase
{
#[TestDox('Emits Test\Errored event when standard output is not empty')]
| {
"filepath": "tests/unit/Framework/TestRunner/ChildProcessResultProcessorTest.php",
"language": "php",
"file_size": 4388,
"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\Framework;
use function file_get_contents;
use function preg_match_all;
u... | array
{
preg_match_all(
'/public static function (assert[^ (]+)/',
file_get_contents(
__DIR__ . '/../../../../src/Framework/Assert.php',
),
$matches,
);
$function | )]
final class FunctionsTest extends TestCase
{
private static array $globalAssertionFunctions = [];
/**
* @return array<string, array{string}>
*/
public static function provideStaticAssertionMethodNames(): | {
"filepath": "tests/unit/Framework/Assert/FunctionsTest.php",
"language": "php",
"file_size": 1998,
"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 PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\Attributes\DataProv... | * @return non-empty-list<array{0: array<mixed>, 1: array<mixed>, 2: array<mixed>}>
*/
public static function successProvider(): array
{
return [
[
['a' => 'b', 'b' => 'c', 0 => 1, 1 => 2],
| gListOfKeys')]
#[TestDox('assertArrayIsEqualToArrayIgnoringListOfKeys()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertArrayIsEqualToArrayIgnoringListOfKeysTest extends TestCase
{
/**
| {
"filepath": "tests/unit/Framework/Assert/assertArrayIsEqualToArrayIgnoringListOfKeysTest.php",
"language": "php",
"file_size": 2630,
"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 PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\Attributes\DataProv... |
/**
* @return non-empty-list<array{0: array<mixed>, 1: array<mixed>, 2: array<mixed>}>
*/
public static function successProvider(): array
{
return [
[
['a' => 'b', 'b' => 'c', 0 => 1, 1 => 2],
| oringListOfKeys')]
#[TestDox('assertArrayIsIdenticalToArrayIgnoringListOfKeys()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertArrayIsIdenticalToArrayIgnoringListOfKeysTest extends TestCase
{ | {
"filepath": "tests/unit/Framework/Assert/assertArrayIsIdenticalToArrayIgnoringListOfKeysTest.php",
"language": "php",
"file_size": 2650,
"cut_index": 563,
"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;
use ArrayAccess;
use PHPUnit\Framework\Attributes... | erExternal(assertArrayHasKeyTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(int|string $key, array|ArrayAccess $array): void
{
$this->assertArrayNotHasKey($key, $array);
}
#[DataProviderEx |
#[CoversMethod(Assert::class, 'assertArrayNotHasKey')]
#[TestDox('assertArrayNotHasKey()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertArrayNotHasKeyTest extends TestCase
{
#[DataProvid | {
"filepath": "tests/unit/Framework/Assert/assertArrayNotHasKeyTest.php",
"language": "php",
"file_size": 1302,
"cut_index": 524,
"middle_length": 229
} |
\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\TestFixture\ObjectComparison\ChildOfValueObjectA;
use PHPUnit\TestFixture\ObjectComparison\SameStructAsValueObjectA;
use PHPUnit\TestFixture\ObjectComparison\ValueObjectA;
use stdClass;
#[CoversMethod(Assert::class, '... | => [
[],
[],
],
'implicit integer keys' => [
['a', 'b', 'c'],
['a', 'b', 'c'],
],
'explicit integer keys' => [
[1 => 'a', 2 = | * @return non-empty-array<non-empty-string, array{0: array<mixed>, 1: array<mixed>}>
*/
public static function successProvider(): array
{
$object = new stdClass;
return [
'empty arrays' | {
"filepath": "tests/unit/Framework/Assert/assertArraysAreEqualTest.php",
"language": "php",
"file_size": 9764,
"cut_index": 921,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
use stdClass;
#[CoversMe... | return [
'empty arrays' => [
[],
[],
],
'implicit integer keys' => [
['a', 'b', 'c'],
['a', 'b', 'c'],
],
'explicit integer | lValuesTest extends TestCase
{
/**
* @return non-empty-array<non-empty-string, array{0: array<mixed>, 1: array<mixed>}>
*/
public static function successProvider(): array
{
$object = new stdClass;
| {
"filepath": "tests/unit/Framework/Assert/assertArraysHaveEqualValuesTest.php",
"language": "php",
"file_size": 7627,
"cut_index": 716,
"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 DateInterval;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\A... | ixed, 1: iterable<mixed>}>
*/
public static function successProvider(): array
{
$a = new stdClass;
$a->foo = 'bar';
$b = new stdClass;
$b->foo = 'bar';
return [
[0, [0]],
| assertContainsEquals')]
#[TestDox('assertContainsEquals()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsEqualsTest extends TestCase
{
/**
* @return non-empty-list<array{0: m | {
"filepath": "tests/unit/Framework/Assert/assertContainsEqualsTest.php",
"language": "php",
"file_size": 2514,
"cut_index": 563,
"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;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | TestCase
{
#[DataProviderExternal(assertContainsOnlyClosedResourceTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyClosedResource($haysta | ssert::class, 'assertContainsNotOnlyClosedResource')]
#[TestDox('assertContainsNotOnlyClosedResource()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyClosedResourceTest extends | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyClosedResourceTest.php",
"language": "php",
"file_size": 1338,
"cut_index": 524,
"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\Framework\TestSize;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\CoversClassesThatExtendClass;
use PHPUnit\Framework... | reater than small test' => [
false,
TestSize::small(),
TestSize::small(),
],
'small test is not greater than medium test' => [
false,
TestSize::small() | al class TestSizeTest extends TestCase
{
/**
* @return array<string, array{bool, TestSize, TestSize}>
*/
public static function comparisonProvider(): array
{
return [
'small test is not g | {
"filepath": "tests/unit/Framework/TestSizeTest.php",
"language": "php",
"file_size": 4203,
"cut_index": 614,
"middle_length": 229
} |
PUnit\Framework\Attributes\Small;
use PHPUnit\Framework\TestCase;
#[CoversClass(TestStatus::class)]
#[CoversClassesThatExtendClass(TestStatus::class)]
#[Small]
final class TestStatusTest extends TestCase
{
public function testCanBeUnknown(): void
{
$status = TestStatus::unknown();
$this->asser... | ());
$this->assertFalse($status->isDeprecation());
$this->assertFalse($status->isNotice());
$this->assertSame('unknown', $status->asString());
}
public function testCanBeSuccess(): void
{
$status = TestStatus:: | assertFalse($status->isError());
$this->assertFalse($status->isWarning());
$this->assertFalse($status->isRisky());
$this->assertFalse($status->isIncomplete());
$this->assertFalse($status->isSkipped | {
"filepath": "tests/unit/Framework/TestStatusTest.php",
"language": "php",
"file_size": 12323,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\PreserveGlobalState;
use PHPUnit\Framework\Attributes\RunInS... | TextUI\CliArguments\Builder;
use PHPUnit\TextUI\Configuration\Configuration;
use PHPUnit\TextUI\Configuration\Merger;
use PHPUnit\TextUI\XmlConfiguration\Loader;
use ReflectionClass;
#[CoversClass(ErrorHandlerBootstrapper::class)]
#[Small]
final class Err | e PHPUnit\Runner\IssueTriggerResolver\DefaultResolver;
use PHPUnit\Runner\IssueTriggerResolver\Resolver;
use PHPUnit\TestFixture\IssueTriggerResolver\ResolverA;
use PHPUnit\TestFixture\IssueTriggerResolver\ResolverB;
use PHPUnit\ | {
"filepath": "tests/unit/Framework/TestRunner/ErrorHandlerBootstrapperTest.php",
"language": "php",
"file_size": 3855,
"cut_index": 614,
"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 PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\Attributes\DataProv... | estCase
{
/**
* @return non-empty-list<array{0: array<mixed>, 1: array<mixed>, 2: array<mixed>}>
*/
public static function successProvider(): array
{
return [
[
['a' => 'b', 'b' => 'c', 0 => 1, 1 => | sideringListOfKeys')]
#[TestDox('assertArrayIsEqualToArrayOnlyConsideringListOfKeys()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertArrayIsEqualToArrayOnlyConsideringListOfKeysTest extends T | {
"filepath": "tests/unit/Framework/Assert/assertArrayIsEqualToArrayOnlyConsideringListOfKeysTest.php",
"language": "php",
"file_size": 2699,
"cut_index": 563,
"middle_length": 229
} |
\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
use PHPUnit\TestFixture\ObjectComparison\ChildOfValueObjectA;
use PHPUnit\TestFixture\ObjectComparison\SameStructAsValueObjectA;
use PHPUnit\TestFixture\ObjectComparison\ValueObjectA;
use stdClass;
#[CoversMethod(Assert::class, '... | return [
'empty arrays' => [
[],
[],
],
'implicit integer keys' => [
['a', 'b', 'c'],
['a', 'b', 'c'],
],
'explicit integer ke | rderTest extends TestCase
{
/**
* @return non-empty-array<non-empty-string, array{0: array<mixed>, 1: array<mixed>}>
*/
public static function successProvider(): array
{
$object = new stdClass;
| {
"filepath": "tests/unit/Framework/Assert/assertArraysAreEqualIgnoringOrderTest.php",
"language": "php",
"file_size": 10882,
"cut_index": 921,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\Framework;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
use stdClass;
#[CoversMe... | turn [
'empty arrays' => [
[],
[],
],
'implicit integer keys' => [
['a', 'b', 'c'],
['a', 'b', 'c'],
],
'explicit integer keys' => | st extends TestCase
{
/**
* @return non-empty-array<non-empty-string, array{0: array<mixed>, 1: array<mixed>}>
*/
public static function successProvider(): array
{
$object = new stdClass;
re | {
"filepath": "tests/unit/Framework/Assert/assertArraysAreIdenticalTest.php",
"language": "php",
"file_size": 7912,
"cut_index": 716,
"middle_length": 229
} |
it\TestFixture\DependencySuccessTest;
use stdClass;
#[CoversClass(ExecutionOrderDependency::class)]
#[Small]
class ExecutionOrderDependencyTest extends TestCase
{
public function testCanBeInvalid(): void
{
$dependency = ExecutionOrderDependency::invalid();
$this->assertFalse($dependency->isVal... | false, false);
$dependency = ExecutionOrderDependency::forClass($metadata);
$this->assertTrue($dependency->isValid());
$this->assertTrue($dependency->targetIsClass());
$this->assertSame('SomeClass::class', $dependency->get | this->assertFalse($dependency->shallowClone());
$this->assertFalse($dependency->deepClone());
}
public function testCanBeDependencyOnClass(): void
{
$metadata = Metadata::dependsOnClass('SomeClass', | {
"filepath": "tests/unit/Framework/ExecutionOrderDependencyTest.php",
"language": "php",
"file_size": 10130,
"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\Framework;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Fram... | #[TestDox('Returns empty string when test expects output and STDOUT is not rewindable')]
#[RunInSeparateProcess]
#[PreserveGlobalState(false)]
public function testReturnsEmptyStringWhenTestExpectsOutput(): void
{
$test = new Succes | work\TestRunner\ChildProcessOutputCollector;
use PHPUnit\TestFixture\Success;
use ReflectionProperty;
#[CoversClass(ChildProcessOutputCollector::class)]
#[Small]
final class ChildProcessOutputCollectorTest extends TestCase
{
| {
"filepath": "tests/unit/Framework/TestRunner/ChildProcessOutputCollectorTest.php",
"language": "php",
"file_size": 1714,
"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 ArrayAccess;
use ArrayObject;
use PHPUnit\Framework\Attributes\CoversMethod;
use PHP... | * @return non-empty-list<array{0: int|string, 1: array<mixed>|ArrayAccess<array-key, mixed>}>
*/
public static function successProvider(): array
{
$arrayAccess = new SampleArrayAccess;
$arrayAccess['foo'] = 'bar';
| ArrayAccess;
#[CoversMethod(Assert::class, 'assertArrayHasKey')]
#[TestDox('assertArrayHasKey()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertArrayHasKeyTest extends TestCase
{
/**
| {
"filepath": "tests/unit/Framework/Assert/assertArrayHasKeyTest.php",
"language": "php",
"file_size": 2301,
"cut_index": 563,
"middle_length": 229
} |
that was distributed with this source code.
*/
namespace PHPUnit\Framework;
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\TestFixture\AbstractTestCase;
use PHPUnit\TestFixture\DependencyFailureTest;
use PHPUnit\TestFixture\DependencyOnClassTest;
use PHPUnit\TestFix... | $this->assertCount(1, $suite);
}
public function testNormalizeProvidedDependencies(): void
{
$suite = TestSuite::fromClassReflector(new ReflectionClass(MultiDependencyTest::class));
$this->assertEquals([
MultiDepen | Suite::class)]
#[Small]
final class TestSuiteTest extends TestCase
{
public function testNotPublicTestCase(): void
{
$suite = TestSuite::fromClassReflector(new ReflectionClass(NotPublicTestCase::class));
| {
"filepath": "tests/unit/Framework/TestSuiteTest.php",
"language": "php",
"file_size": 5263,
"cut_index": 716,
"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 PHPUnit\Framework\Attributes\CoversMethod;
use PHPUnit\Framework\Attributes\DataProv... | st extends TestCase
{
/**
* @return non-empty-list<array{0: array<mixed>, 1: array<mixed>, 2: array<mixed>}>
*/
public static function successProvider(): array
{
return [
[
['a' => 'b', 'b' => 'c', | yConsideringListOfKeys')]
#[TestDox('assertArrayIsIdenticalToArrayOnlyConsideringListOfKeys()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertArrayIsIdenticalToArrayOnlyConsideringListOfKeysTe | {
"filepath": "tests/unit/Framework/Assert/assertArrayIsIdenticalToArrayOnlyConsideringListOfKeysTest.php",
"language": "php",
"file_size": 2719,
"cut_index": 563,
"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;
use PHPUnit\Framework\Attributes\CoversMethod;
us... | derExternal(assertContainsOnlyArrayTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(iterable $haystack): void
{
$this->assertContainsNotOnlyArray($haystack);
}
#[DataProviderExternal(assert | ssert::class, 'assertContainsNotOnlyArray')]
#[TestDox('assertContainsNotOnlyArray()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertContainsNotOnlyArrayTest extends TestCase
{
#[DataProvi | {
"filepath": "tests/unit/Framework/Assert/assertContainsNotOnlyArrayTest.php",
"language": "php",
"file_size": 1275,
"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;
use PHPUnit\Framework\Attributes\CoversMeth... | (): void
{
$this->assertFileMatchesFormatFile(
TEST_FILES_PATH . 'expectedFileFormat.txt',
TEST_FILES_PATH . 'expectedFileFormat.txt',
);
}
public function testFailsWhenConstraintEvaluatesToFalse(): void | estDox('assertFileMatchesFormatFile()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertFileMatchesFormatFileTest extends TestCase
{
public function testSucceedsWhenConstraintEvaluatesToTrue | {
"filepath": "tests/unit/Framework/Assert/assertFileMatchesFormatFileTest.php",
"language": "php",
"file_size": 1245,
"cut_index": 518,
"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;
use function fclose;
use function fopen;
use PHPUnit\Framework... | -empty-list<array{0: mixed}>
*/
public static function failureProvider(): array
{
$openResource = fopen(__FILE__, 'r');
$closedResource = fopen(__FILE__, 'r');
fclose($closedResource);
return [
[[] | x;
use stdClass;
#[CoversMethod(Assert::class, 'assertIsInt')]
#[TestDox('assertIsInt()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsIntTest extends TestCase
{
/**
* @return non | {
"filepath": "tests/unit/Framework/Assert/assertIsIntTest.php",
"language": "php",
"file_size": 1584,
"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\Framework;
use function fclose;
use function fopen;
use ArrayIterator;
us... | tCase
{
/**
* @return non-empty-list<array{0: mixed}>
*/
public static function successProvider(): array
{
return [
[[]],
[new ArrayIterator([])],
];
}
/**
* @return non-empty-list | k\Attributes\TestDox;
use stdClass;
#[CoversMethod(Assert::class, 'assertIsIterable')]
#[TestDox('assertIsIterable()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsIterableTest extends Tes | {
"filepath": "tests/unit/Framework/Assert/assertIsIterableTest.php",
"language": "php",
"file_size": 1894,
"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\Framework;
use function fclose;
use function fopen;
use PHPUnit\Framework... | non-empty-list<array{0: mixed}>
*/
public static function failureProvider(): array
{
$openResource = fopen(__FILE__, 'r');
$closedResource = fopen(__FILE__, 'r');
fclose($closedResource);
return [
| x;
use stdClass;
#[CoversMethod(Assert::class, 'assertIsList')]
#[TestDox('assertIsList()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsListTest extends TestCase
{
/**
* @return | {
"filepath": "tests/unit/Framework/Assert/assertIsListTest.php",
"language": "php",
"file_size": 1666,
"cut_index": 537,
"middle_length": 229
} |
hp 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 PHPUnit\Framework\Attributes\CoversM... | rrayTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotArray($actual);
}
public function testFailsWhenConstraintEvaluatesToFalse(): void
{
| sMethod(Assert::class, 'assertIsNotArray')]
#[TestDox('assertIsNotArray()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotArrayTest extends TestCase
{
#[DataProviderExternal(assertIsA | {
"filepath": "tests/unit/Framework/Assert/assertIsNotArrayTest.php",
"language": "php",
"file_size": 1100,
"cut_index": 515,
"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 PHPUnit\Framework\Attributes\CoversMeth... | t::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotBool($actual);
}
#[DataProviderExternal(assertIsBoolTest::class, 'successProvider')]
public functi | thod(Assert::class, 'assertIsNotBool')]
#[TestDox('assertIsNotBool()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotBoolTest extends TestCase
{
#[DataProviderExternal(assertIsBoolTes | {
"filepath": "tests/unit/Framework/Assert/assertIsNotBoolTest.php",
"language": "php",
"file_size": 1184,
"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;
use PHPUnit\Framework\Attributes\CoversMeth... | ertIsCallableTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotCallable($actual);
}
#[DataProviderExternal(assertIsCallableTest::class, 'successProvi | thod(Assert::class, 'assertIsNotCallable')]
#[TestDox('assertIsNotCallable()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotCallableTest extends TestCase
{
#[DataProviderExternal(ass | {
"filepath": "tests/unit/Framework/Assert/assertIsNotCallableTest.php",
"language": "php",
"file_size": 1212,
"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;
use function fclose;
use function fopen;
use PHPU... | est extends TestCase
{
#[DataProviderExternal(assertIsClosedResourceTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotClosedResource($actual);
}
| ork\Attributes\TestDox;
#[CoversMethod(Assert::class, 'assertIsNotClosedResource')]
#[TestDox('assertIsNotClosedResource()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotClosedResourceT | {
"filepath": "tests/unit/Framework/Assert/assertIsNotClosedResourceTest.php",
"language": "php",
"file_size": 1290,
"cut_index": 524,
"middle_length": 229
} |
hp 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 PHPUnit\Framework\Attributes\CoversM... | loatTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotFloat($actual);
}
public function testFailsWhenConstraintEvaluatesToFalse(): void
{
| sMethod(Assert::class, 'assertIsNotFloat')]
#[TestDox('assertIsNotFloat()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotFloatTest extends TestCase
{
#[DataProviderExternal(assertIsF | {
"filepath": "tests/unit/Framework/Assert/assertIsNotFloatTest.php",
"language": "php",
"file_size": 1101,
"cut_index": 515,
"middle_length": 229
} |
hp 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 PHPUnit\Framework\Attributes\CoversM... | ::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotInt($actual);
}
public function testFailsWhenConstraintEvaluatesToFalse(): void
{
$this->ex | sMethod(Assert::class, 'assertIsNotInt')]
#[TestDox('assertIsNotInt()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotIntTest extends TestCase
{
#[DataProviderExternal(assertIsIntTest | {
"filepath": "tests/unit/Framework/Assert/assertIsNotIntTest.php",
"language": "php",
"file_size": 1087,
"cut_index": 515,
"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 PHPUnit\Framework\Attributes\CoversMeth... | ertIsIterableTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotIterable($actual);
}
#[DataProviderExternal(assertIsIterableTest::class, 'successProvi | thod(Assert::class, 'assertIsNotIterable')]
#[TestDox('assertIsNotIterable()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotIterableTest extends TestCase
{
#[DataProviderExternal(ass | {
"filepath": "tests/unit/Framework/Assert/assertIsNotIterableTest.php",
"language": "php",
"file_size": 1212,
"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;
use PHPUnit\Framework\Attributes\CoversMeth... | IsNumericTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotNumeric($actual);
}
#[DataProviderExternal(assertIsNumericTest::class, 'successProvider')] | thod(Assert::class, 'assertIsNotNumeric')]
#[TestDox('assertIsNotNumeric()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotNumericTest extends TestCase
{
#[DataProviderExternal(assert | {
"filepath": "tests/unit/Framework/Assert/assertIsNotNumericTest.php",
"language": "php",
"file_size": 1205,
"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;
use PHPUnit\Framework\Attributes\CoversMeth... | rnal(assertIsObjectTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotObject($actual);
}
public function testFailsWhenConstraintEvaluatesToFalse(): vo | s;
#[CoversMethod(Assert::class, 'assertIsNotObject')]
#[TestDox('assertIsNotObject()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotObjectTest extends TestCase
{
#[DataProviderExte | {
"filepath": "tests/unit/Framework/Assert/assertIsNotObjectTest.php",
"language": "php",
"file_size": 1130,
"cut_index": 518,
"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;
use const PHP_OS_FAMILY;
use function chmod;
use function mkdi... | ramework/assertions')]
final class assertIsNotReadableTest extends TestCase
{
private ?string $directory = null;
private ?string $file = null;
protected function tearDown(): void
{
if ($this->directory !== null) {
| ributes\Group;
use PHPUnit\Framework\Attributes\Small;
use PHPUnit\Framework\Attributes\TestDox;
#[CoversMethod(Assert::class, 'assertIsNotReadable')]
#[TestDox('assertIsNotReadable()')]
#[Small]
#[Group('framework')]
#[Group('f | {
"filepath": "tests/unit/Framework/Assert/assertIsNotReadableTest.php",
"language": "php",
"file_size": 2008,
"cut_index": 537,
"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 PHPUnit\Framework\Attributes\CoversMeth... | ertIsResourceTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotResource($actual);
}
#[DataProviderExternal(assertIsResourceTest::class, 'successProvi | thod(Assert::class, 'assertIsNotResource')]
#[TestDox('assertIsNotResource()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotResourceTest extends TestCase
{
#[DataProviderExternal(ass | {
"filepath": "tests/unit/Framework/Assert/assertIsNotResourceTest.php",
"language": "php",
"file_size": 1212,
"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;
use PHPUnit\Framework\Attributes\CoversMeth... | calarTest::class, 'failureProvider')]
public function testSucceedsWhenConstraintEvaluatesToTrue(mixed $actual): void
{
$this->assertIsNotScalar($actual);
}
#[DataProviderExternal(assertIsScalarTest::class, 'successProvider')]
p | thod(Assert::class, 'assertIsNotScalar')]
#[TestDox('assertIsNotScalar()')]
#[Small]
#[Group('framework')]
#[Group('framework/assertions')]
final class assertIsNotScalarTest extends TestCase
{
#[DataProviderExternal(assertIsS | {
"filepath": "tests/unit/Framework/Assert/assertIsNotScalarTest.php",
"language": "php",
"file_size": 1198,
"cut_index": 518,
"middle_length": 229
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.