/**
  * @return void
  */
 public function testGetProject()
 {
     $res = $this->Transifex->getProject();
     //debug($res);
     $this->assertEquals('en', $res['source_language_code']);
     $this->assertEquals('http://cakephp.org/', $res['homepage']);
     $this->assertSame(false, $res['private']);
     // languages
     $this->assertTrue(!empty($res['teams']));
     $this->assertTrue(!empty($res['maintainers']));
     $this->assertTrue(!empty($res['resources']));
 }
 /**
  * TransifexShell::_languages()
  *
  * @return array
  */
 protected function _languages()
 {
     $translations = $this->Transifex->getProject();
     if (!isset($translations['teams'])) {
         return $this->error('No such project');
     }
     sort($translations['teams']);
     return $translations['teams'];
 }