title: PhpUnit ...Killed Why is it being killed?
body: <p>My <code>phpunit.xml</code></p>
  
  <pre><code>&lt;phpunit
    bootstrap="bootstrap.php"
    backupGlobals="false"
    colors="true"
    convertErrorsToExceptions="true"
    convertNoticesToExceptions="true"
    convertWarningsToExceptions="true"
    &gt;
    &lt;testsuites&gt;
      &lt;testsuite&gt;
        &lt;directory suffix="Test.php"&gt;./tests&lt;/directory&gt;
      &lt;/testsuite&gt;
    &lt;/testsuites&gt;
  
    &lt;logging&gt;
      &lt;log type="coverage-html" target="coverage" lowUpperBound="75" highUpperBound="100" /&gt;
    &lt;/logging&gt;
  &lt;/phpunit&gt;
  </code></pre>
  
  <p>My <code>bootstrap.php</code>:</p>
  
  <pre><code>&lt;?php
  
  /** ---------------------------------------------------- **/
  // Require the vendors autoload file.
  /** ---------------------------------------------------- **/
  require_once 'vendor/autoload.php';
  
  /** ---------------------------------------------------- **/
  // We neeed WordPress Bootstrap files for its test.
  /** ---------------------------------------------------- **/
  define('WP_TEST_DIR', parse_ini_file('test-config.ini')['test-location']);
  
  // Include the bootstrap file.
  require_once WP_TEST_DIR . 'includes/bootstrap.php';
  
  // Include the Functions file
  require_once WP_TEST_DIR . 'includes/functions.php';
  </code></pre>
  
  <p>When I run this with the logging section uncommented, I get:</p>
  
  <pre><code>vagrant@vagrant-ubuntu-trusty-64:/vagrant/Freya/Routes$ phpunit
  Installing...
  Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
  Not running ajax tests. To execute these, use --group ajax.
  Not running ms-files tests. To execute these, use --group ms-files.
  Not running external-http tests. To execute these, use --group external-http.
  PHPUnit 4.6.6 by Sebastian Bergmann and contributors.
  
  Configuration read from /vagrant/Freya/Routes/phpunit.xml
  
  ...............Killed
  </code></pre>
  
  <p>When I comment out logging I get:</p>
  
  <pre><code>vagrant@vagrant-ubuntu-trusty-64:/vagrant/Freya/Routes$ phpunit
  Installing...
  Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
  Not running ajax tests. To execute these, use --group ajax.
  Not running ms-files tests. To execute these, use --group ms-files.
  Not running external-http tests. To execute these, use --group external-http.
  PHPUnit 4.6.6 by Sebastian Bergmann and contributors.
  
  Configuration read from /vagrant/Freya/Routes/phpunit.xml
  
  ..................................
  
  Time: 9.64 seconds, Memory: 45.50Mb
  
  OK (34 tests, 38 assertions)
  </code></pre>
  
  <p>Why does it die with no visible errors? is it a memory issue? If so why not say that? These set of tests do include the WordPress test suite class <code>WP_UnitTestCase</code> to allow me to set up a fake Wordpress install for some of the tests But as you can see the second time I ran the tests with the logging commented out I get 45.50mb memory used. Thats nothing.</p>
  
  <pre><code>error_reporting = E_ALL &amp; ~E_DEPRECATED &amp; ~E_STRICT
  display_errors = On
  display_startup_errors = Off
  </code></pre>
  
  <p>Php version is <strong>5.5.9</strong></p>
  
  <p>What is going on? (Yes the coverage folder exists)</p>
  
  <h1>Update 1</h1>
  
  <p>Turns out that the <code>dmesg</code> is showing:</p>
  
  <pre><code>[942618.313174] Out of memory: Kill process 12987 (php) score 384 or sacrifice child
  [942618.315188] Killed process 12987 (php) total-vm:453360kB, anon-rss:192380kB, file-rss:12kB
  [942757.404416] php5-fpm invoked oom-killer: gfp_mask=0x201da, order=0, oom_score_adj=0
  [942757.404421] php5-fpm cpuset=/ mems_allowed=0
  [942757.404424] CPU: 0 PID: 16427 Comm: php5-fpm Tainted: G           OX 3.13.0-37-generic #64-Ubuntu
  [942757.404426] Hardware name: innotek GmbH VirtualBox/VirtualBox, BIOS VirtualBox 12/01/2006
  [942757.404428]  0000000000000000 ffff88000200d980 ffffffff8171ed09 ffff88001dfbb000
  [942757.404431]  ffff88000200da08 ffffffff817195c4 0000000000000000 0000000000000000
  [942757.404432]  0000000000000000 0000000000000000 0000000000000000 0000000000000000
  </code></pre>
  
  <p>Would I need to increase the memory of PHP in this case?</p>