1. Go to this page and download the library: Download quarkdev/tendo 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/ */
quarkdev / tendo example snippets
use Tendo\Tendo;
$test('title', function($t) {
$t->pass(); // yes
});
$test('title 2', function($t) {
$t->is(123, '123'); // nop
});
$test('Plan', function($t) {
$t->plan(2);
for ($i = 0; $i < 3; $i++) {
$t->true($i < 3);
}
}); // fails, 3 assertions are executed which is too many
$test->results();