for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
<?php declare(strict_types=1);
namespace SmrTest\lib\DefaultGame;
use Smr\RaceDetails;
use Smr\Race;
/**
* @covers Smr\RaceDetails
*/
class RaceDetailsTest extends \PHPUnit\Framework\TestCase {
public function test_getShortDescription() : void {
// Check that a description exists for all playable races
foreach (Race::getPlayableIDs() as $raceID) {
self::assertNotEmpty(RaceDetails::getShortDescription($raceID));
}
public function test_getLongDescription() : void {
self::assertNotEmpty(RaceDetails::getLongDescription($raceID));