PHP code example of phalcana / unittest
1. Go to this page and download the library: Download phalcana/unittest 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/ */
phalcana / unittest example snippets
namespace Phalcana\Tests;
use Phalcana\Unittest\TestCase;
/**
* Example test name
*
* @group phalana
* @group phalana.core
* @group phalana.core.arr
*
* @package Phalcana
* @category Tests
*/
class ExampleTest extends TestCase
{
}
bash
vendor/phpunit/phpunit/phpunit --bootstrap modules/unittest/index.php modules/unittest/tests.php
bash
phpunit --bootstrap modules/unittest/index.php modules/unittest/tests.php