public function testConversionWithInvalidKey() { $this->setExpectedException('InvalidArgumentException'); $this->converter = new InvalidPackageConverter($this->type); $this->converter->convert(array( 'name' => 'foo', )); }
/** * @expectedException \InvalidArgumentException */ public function testConversionWithInvalidKey() { $this->converter = new InvalidPackageConverter($this->type); $this->converter->convert(array('name' => 'foo')); }