Skip to content

Commit

Permalink
Class over string reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jan 8, 2015
1 parent 70f9723 commit 617f966
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

namespace ProxyManagerTest\ProxyGenerator;

use ProxyManager\Exception\InvalidProxiedClassException;
use ProxyManager\Proxy\AccessInterceptorInterface;
use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizerGenerator;
use ReflectionClass;
Expand All @@ -44,7 +45,7 @@ public function testGeneratesValidCode($className)

if ($reflectionClass->isInterface()) {
// @todo interfaces *may* be proxied by deferring property localization to the constructor (no hardcoding)
$this->setExpectedException('ProxyManager\Exception\InvalidProxiedClassException');
$this->setExpectedException(InvalidProxiedClassException::class);
}

parent::testGeneratesValidCode($className);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

namespace ProxyManagerTest\ProxyGenerator;

use ProxyManager\Exception\InvalidProxiedClassException;
use ProxyManager\Proxy\GhostObjectInterface;
use ProxyManager\ProxyGenerator\LazyLoadingGhostGenerator;
use ReflectionClass;
Expand All @@ -44,7 +45,7 @@ public function testGeneratesValidCode($className)

if ($reflectionClass->isInterface()) {
// @todo interfaces *may* be proxied by deferring property localization to the constructor (no hardcoding)
$this->setExpectedException('ProxyManager\Exception\InvalidProxiedClassException');
$this->setExpectedException(InvalidProxiedClassException::class);
}

parent::testGeneratesValidCode($className);
Expand Down

0 comments on commit 617f966

Please sign in to comment.