title: Fatal Error - Too many open files
body: <p>I try to run PHPUnit Tests in my new machine and I get this error:</p>
  
  <blockquote>
    <p>PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/usr/lib/php/pear/File/Iterator): failed to open dir: Too many open files' in /usr/lib/php/pear/File/Iterator/Factory.php:114</p>
  </blockquote>
  
  <p>The same code on the old machine run well...</p>
  
  <p>New machine environment:
  PHP Version: PHP 5.3.21 (cli)
  Older: PHP 5.3.14</p>
  
  <p>PHPUnit output every time:</p>
  
  <pre><code>................EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE 65 / 66 ( 98%)
  E
  
  Time: 34 seconds, Memory: 438.50Mb
  
  There were 50 errors:
  
  1) XXXXXXXXXXX
  PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/usr/lib/php/pear/File/Iterator): failed to open dir: Too many open files' in /usr/lib/php/pear/File/Iterator/Factory.php:114
  </code></pre>