1. Go to this page and download the library: Download hmlb/phpunit-vw library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hmlb / phpunit-vw example snippets
class VWTest extends PHPUnit_Framework_TestCase
{
private $emissions = 12000;
private $legalLimit = 300;
public function testEnvironmentalImpactCompliance()
{
$this->assertLessThan($this->legalLimit, $this->emissions);
}
}
xml
<phpunit bootstrap="vendor/autoload.php">
...
<listeners>
<listener class="HMLB\PHPUnit\Listener\VWListener" />
</listeners>
</phpunit>