Skip to content

Commit

Permalink
No need to extend from anything in the remote object factory tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Oct 1, 2014
1 parent 7f31c05 commit a302221
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/ProxyManagerTest/Factory/RemoteObjectFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ function (ClassGenerator $targetClass) use ($proxyClassName) {
$this->returnCallback(
function () use ($proxyClassName) {
eval(
'class ' . $proxyClassName
. ' extends stdClass {'
'class ' . $proxyClassName . ' {'
. 'public static function staticProxyConstructor() { return new static(); }'
. '}'
);
Expand All @@ -142,7 +141,6 @@ function () use ($proxyClassName) {

$adapter = $this->getMock('ProxyManager\Factory\RemoteObject\AdapterInterface');
$factory = new RemoteObjectFactory($adapter, $this->config);
/* @var $proxy \stdClass */
$proxy = $factory->createProxy('ProxyManagerTestAsset\\BaseInterface', $adapter);

$this->assertInstanceOf($proxyClassName, $proxy);
Expand Down

0 comments on commit a302221

Please sign in to comment.