コード例 #1
0
    public function testConversionWithInvalidKey()
    {
        $this->setExpectedException('InvalidArgumentException');
        $this->converter = new InvalidPackageConverter($this->type);

        $this->converter->convert(array(
            'name' => 'foo',
        ));
    }
コード例 #2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testConversionWithInvalidKey()
 {
     $this->converter = new InvalidPackageConverter($this->type);
     $this->converter->convert(array('name' => 'foo'));
 }