Beispiel #1
0
 public function testMultipleSingletons()
 {
     $instance_one = One::getInstance();
     $instance_two = Two::getInstance();
     $this->assertInstanceOf("oscarpalmer\\Mordin\\Singleton", $instance_one);
     $this->assertInstanceOf("oscarpalmer\\Mordin\\Singleton", $instance_two);
     $this->assertNotSame($instance_one, $instance_two);
 }