mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 19:50:12 +02:00
Use class constant instead of hardcoded namespace
This commit is contained in:
@@ -31,6 +31,6 @@ class ServiceLocatorTest extends TestCase
|
||||
$this->serviceLocator->addClass(LogService::class, []);
|
||||
$logger = $this->serviceLocator->get(LogService::class);
|
||||
|
||||
$this->assertInstanceOf('DesignPatterns\More\ServiceLocator\LogService', $logger);
|
||||
$this->assertInstanceOf(LogService::class, $logger);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user