Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of git://git.zendframework.com/zf
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahar Evron committed Jul 1, 2011
12 parents 9ae12ce + a62b890 + 369a5ce + 2f4d803 + 045137d + 2fdcee4 + 147c99e + d95685a + 9fceeb6 + 4682ed8 + 58e6c7d + af6e96a commit f9a818b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Barcode.php
Expand Up @@ -301,9 +301,8 @@ public static function makeRenderer($renderer = 'image', $rendererConfig = array
}

$rendererName = self::getPluginLoader(self::RENDERER)->load($renderer);

if (!class_exists($rendererName)) {
throw new Exception\InvalidArgumentException(sprintf(
throw new InvalidArgumentException(sprintf(
'Invalid renderer "%s"; does not resolve to a valid class', $renderer
));
}
Expand Down
3 changes: 2 additions & 1 deletion src/Object/AbstractObject.php
Expand Up @@ -31,7 +31,8 @@
Zend\Barcode\Object\Exception\RuntimeException,
Zend\Barcode\Object\Exception\InvalidArgumentException,
Zend\Barcode\Object\Exception\BarcodeValidationException,
Zend\Barcode\Object\Exception\OutOfRangeException;
Zend\Barcode\Object\Exception\OutOfRangeException,
Zend\Barcode\Object\Exception\ExtensionNotLoadedException;

/**
* Class for generate Barcode
Expand Down
2 changes: 1 addition & 1 deletion test/FactoryTest.php
Expand Up @@ -320,7 +320,7 @@ public function testBarcodeFactoryWithNamespaceButWithoutExtendingRendererAbstra

public function testBarcodeRendererFactoryWithUnexistantRenderer()
{
$this->setExpectedException('\Zend\Loader\Exception\PluginLoaderException');
$this->setExpectedException('\Zend\Barcode\Exception\InvalidArgumentException');
$renderer = Barcode\Barcode::makeRenderer('zend', array());
}

Expand Down

0 comments on commit f9a818b

Please sign in to comment.