public function testReflectionOnClassInstance()
 {
     $c = self::TEST_FIXTURE_CLASS;
     $f = new $c();
     $r = Inspect::useInstance($f);
     $this->assertTrue($r instanceof ObjectInspector);
     $this->assertSame(self::TEST_FIXTURE_CLASS, $r->nameQualified());
     $r = Inspect::using($f);
     $this->assertTrue($r instanceof ObjectInspector);
     $this->assertSame(self::TEST_FIXTURE_CLASS, $r->nameQualified());
 }
 /**
  * @return \SR\Reflection\Inspector\ConstantInspector[]
  */
 private function getLogLevelConstants()
 {
     return Inspect::useInstance($this)->constants();
 }
 /**
  * The attendants are designated their "type" using the class names of the respective object. Although
  * fully-qualified names can be (and are) used, this implementation does take the assuption that the
  * base names of the implementations does not overlap.
  *
  * @param bool $qualified
  *
  * @return string
  */
 public function getType($qualified = false)
 {
     return Inspect::useInstance($this)->name($qualified);
 }