PHP code example of barthy-koeln / beautify-specify
1. Go to this page and download the library: Download barthy-koeln/beautify-specify 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/ */
barthy-koeln / beautify-specify example snippets
use BarthyKoeln\BeautifySpecify\Specify;
use PHPUnit\Framework\TestCase;
class SomeClassTest extends TestCase
{
use Specify;
public function testValidation()
{
$this->describe(
'SomeClass',
function () {
$this->it(
'has the correct default values',
function () {
$this->assertEquals([3.14159, 2.71828], $this->someClass->getValues());
}
);
// […]
}
);
}
}