/**
  * testSessionWithFileQueryCreatesExpectedNullClassInstances
  *
  * @return void
  * @covers \stdClass
  * @group reflection
  * @group reflection::integration
  * @group integrationtest
  */
 public function testSessionWithFileQueryCreatesExpectedNullClassInstances()
 {
     $path = $this->getPathnameForClass('ClassWithNullAndPreParsedInterface');
     $session = new ReflectionSession();
     $session->addClassFactory(new NullReflectionClassFactory());
     $query = $session->createFileQuery();
     $class = $query->find($path)->current();
     $interfaces = $class->getInterfaces();
     $this->assertFalse($interfaces[0]->isUserDefined());
 }
 /**
  * This factory method creates a reflection session instance that is a simple
  * wrapper around PHP's internal reflection api. It does not rely on any
  * parsing or suggestions and can only create reflection class instances for
  * existing classes and/or interfaces.
  *
  * @return \pdepend\reflection\ReflectionSession
  */
 public static function createInternalSession()
 {
     $session = new ReflectionSession();
     $session->addClassFactory(new factories\InternalReflectionClassFactory());
     return $session;
 }