public function testAddClassDoesNotExist() { $this->setExpectedException('\\InvalidArgumentException'); $registry = new Registry(); $registry->add(new Definition('foo', '\\foo\\bar')); }