title: Error generating phpdoc with phing
body: <p>I'm configuring Jenkins for my project and I want to create phpdoc but it doesn't works.
  I'm using phing and my server is with Debian.</p>
  
  <p>What I've made : </p>
  
  <ul>
  <li><p>Install phpDoc</p>
  
  <pre><code>pear install phpdoc/phpDocumentor-beta
  </code></pre></li>
  <li><p>Phing :</p>
  
  <pre><code>&lt;target name="phpdoc"&gt;
       &lt;phpdoc2 destdir="${workspace}/app/docs" template="responsive"&gt;
           &lt;fileset dir="./src"&gt;
               &lt;include name="**.*.php" /&gt;
           &lt;/fileset&gt;
       &lt;/phpdoc2&gt;
   &lt;/target&gt;
  </code></pre></li>
  </ul>
  
  <p>I'm getting this error : </p>
  
  <pre><code>    PHP Fatal error:  Call to undefined method phpDocumentor\Parser\Parser::setTitle() in /usr/share/php/phing/tasks/ext/phpdoc/PhpDocumentor2Wrapper.php on line 169
      PHP Stack trace:
      PHP   1. {main}() /usr/share/php/phing.php:0
      PHP   2. Phing::fire() /usr/share/php/phing.php:43
      PHP   3. Phing::start() /usr/share/php/phing/Phing.php:270
      PHP   4. Phing-&gt;runBuild() /usr/share/php/phing/Phing.php:170
      PHP   5. Project-&gt;executeTargets() /usr/share/php/phing/Phing.php:572
      PHP   6. Project-&gt;executeTarget() /usr/share/php/phing/Project.php:791
      PHP   7. Target-&gt;performTasks() /usr/share/php/phing/Project.php:818
      PHP   8. Target-&gt;main() /usr/share/php/phing/Target.php:321
      PHP   9. Task-&gt;perform() /usr/share/php/phing/Target.php:298
      PHP  10. PhingCallTask-&gt;main() /usr/share/php/phing/Task.php:260
      PHP  11. PhingTask-&gt;main() /usr/share/php/phing/tasks/system/PhingCallTask.php:158
      PHP  12. PhingTask-&gt;processFile() /usr/share/php/phing/tasks/system/PhingTask.php:150
      PHP  13. Project-&gt;executeTarget() /usr/share/php/phing/tasks/system/PhingTask.php:277
      PHP  14. Target-&gt;performTasks() /usr/share/php/phing/Project.php:818
      PHP  15. Target-&gt;main() /usr/share/php/phing/Target.php:321
      PHP  16. Task-&gt;perform() /usr/share/php/phing/Target.php:298
      PHP  17. PhpDocumentor2Task-&gt;main() /usr/share/php/phing/Task.php:260
      PHP  18. PhpDocumentor2Wrapper-&gt;run() /usr/share/php/phing/tasks/ext/phpdoc/PhpDocumentor2Task.php:147
      PHP  19. PhpDocumentor2Wrapper-&gt;parseFiles() /usr/share/php/phing/tasks/ext/phpdoc/PhpDocumentor2Wrapper.php:201
      Build step 'Invoke Phing targets' marked build as failure
  </code></pre>
  
  <p>It seems that phpDocumentor class is not found but I don't find why !</p>
  
  <p>My include path is .:/usr/share/php:/usr/share/pear and phpDocumentor is installed in /usr/share/pear folder.</p>
  
  <p>Any ideas ? </p>
  
  <p>Edit : 
  I've created a simple test file : </p>
  
  <pre><code>    # cat test.php
      &lt;?php
      $parser = new \phpDocumentor\Parser\Parser();
  </code></pre>
  
  <p>But I get this error : </p>
  
  <pre><code>    # php -f test.php
      PHP Fatal error:  Class 'phpDocumentor\Parser\Parser' not found in /var/www/test.php on line 2
      PHP Stack trace:
      PHP   1. {main}() /var/www/test.php:0
  </code></pre>
  
  <p>Why phpDocumentor seams to be not installed while I've : </p>
  
  <pre><code>pear info phpdoc/phpDocumentor
  About pear.phpdoc.org/phpDocumentor-2.0.0
  =========================================
  Release Type          PEAR-style PHP-based Package
  Name                  phpDocumentor
  Channel               pear.phpdoc.org
  [...]
  Release Date          2013-08-03 06:08:35
  Release Version       2.0.0 (stable)
  API Version           2.0.0 (stable)
  package.xml version   2.0
  Last Modified         2013-08-06 08:17
  Previous Installed    - None -
  Version
  </code></pre>