mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 72cf695554 | |||
| 027f4e4832 |
@ -18,7 +18,7 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.2.0",
|
"php": "^8.2.0",
|
||||||
"brianium/paratest": "^7.8.3",
|
"brianium/paratest": "^7.8.4",
|
||||||
"nunomaduro/collision": "^8.8.2",
|
"nunomaduro/collision": "^8.8.2",
|
||||||
"nunomaduro/termwind": "^2.3.1",
|
"nunomaduro/termwind": "^2.3.1",
|
||||||
"pestphp/pest-plugin": "^3.0.0",
|
"pestphp/pest-plugin": "^3.0.0",
|
||||||
|
|||||||
@ -232,7 +232,6 @@ final class TeamCityLogger
|
|||||||
$reflector = new ReflectionClass($telemetry);
|
$reflector = new ReflectionClass($telemetry);
|
||||||
|
|
||||||
$property = $reflector->getProperty('current');
|
$property = $reflector->getProperty('current');
|
||||||
$property->setAccessible(true);
|
|
||||||
$snapshot = $property->getValue($telemetry);
|
$snapshot = $property->getValue($telemetry);
|
||||||
assert($snapshot instanceof Snapshot);
|
assert($snapshot instanceof Snapshot);
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@ namespace Pest;
|
|||||||
|
|
||||||
function version(): string
|
function version(): string
|
||||||
{
|
{
|
||||||
return '3.8.3';
|
return '3.8.4';
|
||||||
}
|
}
|
||||||
|
|
||||||
function testDirectory(string $file = ''): string
|
function testDirectory(string $file = ''): string
|
||||||
|
|||||||
@ -23,14 +23,12 @@ final class EnsureIgnorableTestCasesAreIgnored implements StartedSubscriber
|
|||||||
{
|
{
|
||||||
$reflection = new ReflectionClass(Facade::class);
|
$reflection = new ReflectionClass(Facade::class);
|
||||||
$property = $reflection->getProperty('collector');
|
$property = $reflection->getProperty('collector');
|
||||||
$property->setAccessible(true);
|
|
||||||
$collector = $property->getValue();
|
$collector = $property->getValue();
|
||||||
|
|
||||||
assert($collector instanceof Collector);
|
assert($collector instanceof Collector);
|
||||||
|
|
||||||
$reflection = new ReflectionClass($collector);
|
$reflection = new ReflectionClass($collector);
|
||||||
$property = $reflection->getProperty('testRunnerTriggeredWarningEvents');
|
$property = $reflection->getProperty('testRunnerTriggeredWarningEvents');
|
||||||
$property->setAccessible(true);
|
|
||||||
|
|
||||||
/** @var array<int, WarningTriggered> $testRunnerTriggeredWarningEvents */
|
/** @var array<int, WarningTriggered> $testRunnerTriggeredWarningEvents */
|
||||||
$testRunnerTriggeredWarningEvents = $property->getValue($collector);
|
$testRunnerTriggeredWarningEvents = $property->getValue($collector);
|
||||||
|
|||||||
@ -34,8 +34,6 @@ final class Reflection
|
|||||||
try {
|
try {
|
||||||
$reflectionMethod = $reflectionClass->getMethod($method);
|
$reflectionMethod = $reflectionClass->getMethod($method);
|
||||||
|
|
||||||
$reflectionMethod->setAccessible(true);
|
|
||||||
|
|
||||||
return $reflectionMethod->invoke($object, ...$args);
|
return $reflectionMethod->invoke($object, ...$args);
|
||||||
} catch (ReflectionException $exception) {
|
} catch (ReflectionException $exception) {
|
||||||
if (method_exists($object, '__call')) {
|
if (method_exists($object, '__call')) {
|
||||||
@ -113,8 +111,6 @@ final class Reflection
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$reflectionProperty->setAccessible(true);
|
|
||||||
|
|
||||||
return $reflectionProperty->getValue($object);
|
return $reflectionProperty->getValue($object);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,8 +140,6 @@ final class Reflection
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$reflectionProperty->setAccessible(true);
|
|
||||||
$reflectionProperty->setValue($object, $value);
|
$reflectionProperty->setValue($object, $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
Pest Testing Framework 3.8.3.
|
Pest Testing Framework 3.8.4.
|
||||||
|
|
||||||
USAGE: pest <file> [options]
|
USAGE: pest <file> [options]
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
Pest Testing Framework 3.8.3.
|
Pest Testing Framework 3.8.4.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user