Skip to content

Commit

Permalink
Fix incorrect assertion in InjectorFactoryTest
Browse files Browse the repository at this point in the history
The test now correctly asserts that the injector is an instance of CompileInjector instead of ScriptInjector. This change ensures the test accurately reflects the expected behavior of the injector creation process.
  • Loading branch information
koriym committed Nov 29, 2024
1 parent 0afe222 commit b028815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/InjectorFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static function (): AbstractModule {
);
$instance = $injector->getInstance(FakeRobotInterface::class);
$this->assertInstanceOf(FakeRobot::class, $instance);
$this->assertInstanceOf(ScriptInjector::class, $injector);
$this->assertInstanceOf(CompileInjector::class, $injector);
}

public function testInjectComplexModule(): void
Expand Down

0 comments on commit b028815

Please sign in to comment.