for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Dice;
use PHPUnit\Framework\TestCase;
/**
* Test cases for class Dice.
*/
class DiceTest extends TestCase
{
* Construct object and verify that the object has the expected
* properties, use no arguments.
public function testCreateDice(): void
$die = new Dice();
$this->assertInstanceOf("\App\Dice\Dice", $die);
$res = $die->getAsString();
$this->assertNotEmpty($res);
}