/** * Tests {@link Object::singleton()} */ public function testSingleton() { $inst = Controller::singleton(); $this->assertInstanceOf('Controller', $inst); $inst2 = Controller::singleton(); $this->assertSame($inst2, $inst); }