assertInstanceOf(Multiton::class, $firstCall); $this->assertSame($firstCall, $secondCall); } public function testUniquenessForEveryInstance() { $firstCall = Multiton::getInstance(Multiton::INSTANCE_1); $secondCall = Multiton::getInstance(Multiton::INSTANCE_2); $this->assertInstanceOf(Multiton::class, $firstCall); $this->assertInstanceOf(Multiton::class, $secondCall); $this->assertNotSame($firstCall, $secondCall); } }