/** * @expectedException LogicException */ public function testDuplicateServiceName() { $app = new App($this->config, 'test-duplicate'); $app->container('test', function () { }); $app->container('test', function () { }); }