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 into ZF2-13
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-mabe committed Jul 22, 2011
15 parents a62b890 + 369a5ce + 2f4d803 + 045137d + 2fdcee4 + 147c99e + d95685a + 9fceeb6 + 4682ed8 + 58e6c7d + f00b78e + 18be569 + af6e96a + f9a818b + b470c79 commit ce259b2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/Barcode.php
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
1 change: 0 additions & 1 deletion tools/phptools
Submodule phptools deleted from d232cb

0 comments on commit ce259b2

Please sign in to comment.