@expectedException \InvalidArgumentException
public function testAddScopeDoesNotAllowExistingScope() { $container = new Container(); $container ->addScope(new Scope('foo')); $container ->addScope(new Scope('foo')); }