예제 #1
0
파일: Tools.php 프로젝트: matks/vivian
 public function testStyles()
 {
     $testString = 'hello';
     $this->string(Vivian\Tools::bold($testString))->isEqualTo("hello");
     $testString2 = 'this is [a test]';
     $this->string(Vivian\Tools::blink($testString2))->isEqualTo("this is [a test]");
 }
예제 #2
0
파일: test-style.php 프로젝트: matks/vivian
#!/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;