Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pol Dellaiera authored and Pol Dellaiera committed Sep 28, 2017
1 parent 851723e commit 3191a51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -3,7 +3,7 @@
"description": "Converts an object/class into an anonymous class.",
"license": "GPL",
"homepage": "https://github.com/drupol/anonymize",
"keywords": ["anonymize classes"],
"keywords": ["anonymize classes", "anonymous classes"],
"support": {
"source": "https://github.com/drupol/anonymize",
"forum": "https://github.com/drupol/anonymize/issues",
Expand Down
4 changes: 3 additions & 1 deletion src/AbstractAnonymize.php
Expand Up @@ -2,12 +2,14 @@

namespace drupol\Anonymize;

use drupol\DynamicObjects\DynamicObject;

/**
* Class AbstractAnonymize.
*
* @package drupol\Anonymize
*/
abstract class AbstractAnonymize
abstract class AbstractAnonymize extends DynamicObject
{
use AnonymizeTrait;
}
4 changes: 1 addition & 3 deletions src/AnonymizeTrait.php
Expand Up @@ -12,8 +12,6 @@
*/
trait AnonymizeTrait
{
use DynamicObjectsTrait;

/**
* Convert an object into an anonymous object.
*
Expand All @@ -24,7 +22,7 @@ trait AnonymizeTrait
public static function convertToAnonymous($object)
{
$reflection = new \ReflectionClass($object);
$class = new class extends DynamicObject {
$class = new class extends Anonymize {
};

foreach ($reflection->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
Expand Down

0 comments on commit 3191a51

Please sign in to comment.