title: Using Composer scripts defined in composer.json, how to display phpunit colors?
body: <h1>Context</h1>
  
  <p>I'm using Composer scripts defined in my <code>composer.json</code> file to run unit tests in my application.</p>
  
  <p><strong>My <code>composer.json</code>:</strong></p>
  
  <pre><code>{
      "name": "my company/my_application",
      "description": "Description of my application",
      "license": "my licence",
      "require": {
          "php": "&gt;=5.6",
          "ext-soap": "*",
          "ext-ssh2": "*",
          "ext-curl": "*",
          "ext-zip": "*",
          "ext-pdo_mysql": "*",
          "ext-gettext": "*",
          "dusank/knapsack": "^9.0"
      },
      "require-dev": {
          "ext-mysqli": "*",
          "phpunit/phpunit": "^5.7",
          "squizlabs/php_codesniffer": "2.*"
      },
      "scripts": {
          "test-php": "vendor/bin/phpunit --colors --verbose --bootstrap tests/bootstrap.php --configuration tests/phpunit.xml",
      }
  }
  </code></pre>
  
  <p><strong>My command is:</strong></p>
  
  <pre><code>vendor/bin/phpunit --colors --verbose --bootstrap tests/bootstrap.php --configuration tests/phpunit.xml tests/
  </code></pre>
  
  <h1>Problem</h1>
  
  <p>If I run <code>vendor/bin/phpunit --colors --verbose --bootstrap tests/bootstrap.php --configuration tests/phpunit.xml tests/</code> inside a terminal, I can see colored output. But if I run it using Composer, I don't see any color.</p>
  
  <h1>Question</h1>
  
  <p>Using Composer scripts defined in composer.json, how to display phpunit colors?</p>