Skip to content

Commit f146a53

Browse files
committed
chore: Update infrastructure
1 parent b7e110c commit f146a53

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"google/common-protos": "^4.9",
2828
"google/protobuf": "^4.31.1",
2929
"grpc/grpc": "^1.57",
30-
"internal/promise": "^2.12 || ^3.4",
3130
"internal/destroy": "^1.0",
31+
"internal/promise": "^2.12 || ^3.4",
3232
"nesbot/carbon": "^2.72.6 || ^3.8.4",
3333
"psr/log": "^2.0 || ^3.0.2",
3434
"ramsey/uuid": "^4.7.6",

dload.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
>
66
<actions>
77
<download software="rr" version="^2025.1.3"/>
8-
<download software="temporal" version="^1.4.1"/>
8+
<download software="temporal" version="^1.4-fairness@dev"/>
99
<download software="temporal-tests-server"/>
1010
</actions>
1111
<registry>

tests/Acceptance/App/ClassLocator.php

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@
44

55
namespace Temporal\Tests\Acceptance\App;
66

7-
use FilesystemIterator;
8-
use RecursiveDirectoryIterator;
9-
use RecursiveIteratorIterator;
10-
use SplFileInfo;
11-
127
final class ClassLocator
138
{
149
/**
@@ -19,9 +14,9 @@ final class ClassLocator
1914
public static function loadTestCases(string $dir, string $namespace): iterable
2015
{
2116
$dir = \realpath($dir);
22-
$files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir, FilesystemIterator::SKIP_DOTS));
17+
$files = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($dir, \FilesystemIterator::SKIP_DOTS));
2318

24-
/** @var SplFileInfo $_ */
19+
/** @var \SplFileInfo $_ */
2520
foreach ($files as $path => $_) {
2621
if (!\is_file($path) || !\str_ends_with($path, '.php')) {
2722
continue;
@@ -43,11 +38,11 @@ public static function findTestClasses(string $namespace, string $baseClass = Te
4338
{
4439
yield from \array_filter(
4540
\get_declared_classes(),
46-
static fn(string $class): bool => \str_starts_with($class, $namespace) && \is_a(
47-
$class,
48-
$baseClass,
49-
true
50-
),
41+
static fn(string $class): bool => \str_starts_with($class, "$namespace\\") && \is_a(
42+
$class,
43+
$baseClass,
44+
true,
45+
),
5146
);
5247
}
5348
}

tests/Acceptance/App/RuntimeBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private static function iterateClasses(string $featuresDir, string $ns): iterabl
9292

9393
yield $feature => \array_filter(
9494
\get_declared_classes(),
95-
static fn(string $class): bool => \str_starts_with($class, $namespace),
95+
static fn(string $class): bool => \str_starts_with($class, "$namespace\\"),
9696
);
9797
}
9898
}

0 commit comments

Comments
 (0)