Permalink
Browse files

Removed destructor from methods enumeration.

Updated Dog test class with destructor.
  • Loading branch information...
1 parent 8a1aaa3 commit 3ee8aea7b31302bdaec4b418ff6a705fd91f6a49 Aaron Stephens committed May 16, 2013
Showing with 4 additions and 1 deletion.
  1. +1 −1 src/DNode/Session.php
  2. +3 −0 tests/DNode/Dog.php
@@ -133,7 +133,7 @@ private function scrub($obj)
$reflector = new \ReflectionClass($node);
$methods = $reflector->getMethods();
foreach ($methods as $method) {
- if (!$method->isPublic() || $method->isConstructor()) {
+ if (!$method->isPublic() || $method->isConstructor() || $method->isDestructor()) {
continue;
}
View
@@ -5,7 +5,10 @@ class Dog
{
public function __construct()
{
+ }
+ public function __destruct()
+ {
}
public function bark()

0 comments on commit 3ee8aea

Please sign in to comment.