public function testCreateInvalidExtension() { $imageFactory = $this->createImageFactory(); $this->setExpectedException('InvalidArgumentException'); $imageFactory->create($this->getRootDir() . '/images/dummy.foo'); }