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://github.com/zendframework/zf2
Browse files Browse the repository at this point in the history
Conflicts:
	.gitignore
  • Loading branch information
sgehrig committed Jul 29, 2011
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 fcebd68

Please sign in to comment.