for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace HeroesofAbenez\Combat;
require __DIR__ . "/../../bootstrap.php";
use Tester\Assert;
/**
* @author Jakub Konečný
* @testCase
*/
final class PetTest extends \Tester\TestCase {
public function testGetCombatEffects(): void {
$pet = new Pet([
"id" => 1, "deployed" => false, "bonusStat" => Character::STAT_STRENGTH, "bonusValue" => 10,
]);
Assert::count(0, $pet->getCombatEffects());
$pet->deployed = true;
Assert::count(1, $pet->getCombatEffects());
}
$test = new PetTest();
$test->run();
?>