public function testExtendThrowsExceptionWhenUnregisteredServiceIsGiven() { $this->setExpectedException('InvalidArgumentException'); $c = new Container(); $c->extend('does_not_exist'); }