Skip to content

Commit 5ff8c02

Browse files
committed
QA
1 parent d1f28b1 commit 5ff8c02

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/discovery/tests/DiscoveryTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ public function test_standalone_discovery(): void
2323
{
2424
$container = new GenericContainer();
2525

26-
new BootDiscovery(
26+
(new BootDiscovery(
2727
container: $container,
2828
registry: new Registry(locations: [
2929
new DiscoveryLocation(
3030
namespace: 'Tempest\Discovery\Tests\Fixtures',
3131
path: __DIR__ . '/Fixtures',
3232
),
3333
]),
34-
)();
34+
))();
3535

3636
self::assertNotNull(MyDiscoveryClass::$discoveredItem);
3737
$this->assertSame('check', MyDiscoveryClass::$discoveredItem->name);
@@ -41,17 +41,17 @@ public function test_discovery_with_other_container(): void
4141
{
4242
$container = new Container();
4343

44-
new BootDiscovery(
44+
(new BootDiscovery(
4545
container: $container,
4646
registry: new Registry(locations: [
4747
new DiscoveryLocation(
4848
namespace: 'Tempest\Discovery\Tests\Fixtures',
4949
path: __DIR__ . '/Fixtures',
5050
),
5151
]),
52-
)();
52+
))();
5353

5454
self::assertNotNull(MyDiscoveryClass::$discoveredItem);
5555
$this->assertSame('check', MyDiscoveryClass::$discoveredItem->name);
5656
}
57-
}
57+
}

packages/discovery/tests/Fixtures/DiscoveredItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ final class DiscoveredItem
77
public function __construct(
88
public string $name,
99
) {}
10-
}
10+
}

packages/discovery/tests/Fixtures/MyDiscoveryClass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ public function apply(): void
2727
self::$discoveredItem = $class->newInstanceArgs(['name' => 'check']);
2828
}
2929
}
30-
}
30+
}

0 commit comments

Comments
 (0)