public function testName()
 {
     foreach (self::TEST_NAMES as $method) {
         $inspect = new MethodInspector(self::TEST_CLASS, $method);
         $this->assertSame(self::TEST_CLASS . '::' . $method, $inspect->nameQualified());
         $this->assertSame(self::TEST_CLASS . '::' . $method, $inspect->name(true));
         $this->assertSame($method, $inspect->nameUnQualified());
         $this->assertSame($method, $inspect->name());
     }
 }
 private function getMethodExpectedVisibility(MethodInspector $method)
 {
     if (1 !== preg_match('{public|protected|private}', $method->name(), $match) || count($match) !== 1) {
         $this->fail('Could not determine expected visibility.');
     }
     return array_pop($match);
 }