public function testGetNamedInstance() { $s = new Application(); $s->setName('foo'); $this->assertSame($s, Application::getInstance('foo')); }