mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-06 15:06:31 +02:00
Use class constant instead of hardcoded namespace
This commit is contained in:
@@ -11,7 +11,7 @@ class SingletonTest extends \PHPUnit_Framework_TestCase
|
||||
$firstCall = Singleton::getInstance();
|
||||
$secondCall = Singleton::getInstance();
|
||||
|
||||
$this->assertInstanceOf('DesignPatterns\Creational\Singleton\Singleton', $firstCall);
|
||||
$this->assertInstanceOf(Singleton::class, $firstCall);
|
||||
$this->assertSame($firstCall, $secondCall);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user