/**
  * @test
  */
 public function it_knows_if_one_of_its_ancestors_is_internal()
 {
     $target = new DefinedTargetClass(new \ReflectionClass("ArrayObject"));
     $this->assertTrue($target->hasInternalAncestor());
     $target = new DefinedTargetClass(new \ReflectionClass("Mockery\\MockeryTest_ClassThatExtendsArrayObject"));
     $this->assertTrue($target->hasInternalAncestor());
     $target = new DefinedTargetClass(new \ReflectionClass("Mockery\\DefinedTargetClassTest"));
     $this->assertFalse($target->hasInternalAncestor());
 }
 /**
  * @test
  */
 public function itShouldReturnEmptyArrayIfClassDoesNotHaveMagicMethods()
 {
     $targetClass = DefinedTargetClass::factory('\\StdClass');
     $magicMethods = $this->pass->getMagicMethods($targetClass);
     $this->assertInternalType('array', $magicMethods);
     $this->assertEmpty($magicMethods);
 }