Testing Tasks

Atoum

Runs atoum tests

<?php
$this->taskAtoum()
 ->files('path/to/test.php')
 ->configFile('config/dev.php')
 ->run()

?>

Behat

Executes Behat tests

<?php
$this->taskBehat()
     ->format('pretty')
     ->noInteraction()
     ->run();
?>

Codecept

Executes Codeception tests

<?php
// config
$this->taskCodecept()
     ->suite('acceptance')
     ->env('chrome')
     ->group('admin')
     ->xml()
     ->html()
     ->run();

?>

PHPUnit

Runs PHPUnit tests

<?php
$this->taskPHPUnit()
 ->group('core')
 ->bootstrap('test/bootstrap.php')
 ->run()

?>

Phpspec

Executes Phpspec tests

<?php
$this->taskPhpspec()
     ->format('pretty')
     ->noInteraction()
     ->run();
?>