public function testStyles() { $testString = 'hello'; $this->string(Vivian\Tools::bold($testString))->isEqualTo("[1mhello[0m"); $testString2 = 'this is [a test]'; $this->string(Vivian\Tools::blink($testString2))->isEqualTo("[5mthis is [a test][0m"); }
#!/usr/bin/env php <?php $autoloadFile = __DIR__ . '/../../vendor/autoload.php'; require $autoloadFile; use Matks\Vivian\Tools; $bold = Tools::bold('Bold'); echo $bold; echo PHP_EOL; echo Tools::blink('Blinking !!!'); echo PHP_EOL; echo Tools::underline('Underlined'); echo PHP_EOL; echo Tools::invisible('Invisible'); echo PHP_EOL;