public function testRepositoryEvents()
 {
     $path = dirname(__FILE__) . '/repositoryevents/';
     $cases = $this->readTestCases($path);
     foreach ($cases as $name => $info) {
         $input = $info['input'];
         $expect = $info['expect'];
         $event = NuanceGitHubRawEvent::newEvent(NuanceGitHubRawEvent::TYPE_REPOSITORY, $input);
         $this->assertGitHubRawEventParse($expect, $event, $name);
     }
 }
 private function newRawEvent(NuanceItem $item)
 {
     $type = $item->getItemProperty('api.type');
     $raw = $item->getItemProperty('api.raw', array());
     return NuanceGitHubRawEvent::newEvent($type, $raw);
 }