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 PHPUnit\Framework\TestCase;
use Smr\HardwareType;
/**
* @covers Smr\HardwareType
*/
class HardwareTypeTest extends TestCase {
public static function setUpBeforeClass(): void {
// Make sure cache is clear so we can cover the cache population code
HardwareType::clearCache();
}
public function test_get(): void {
// Spot check one of the hardware types
$expected = new HardwareType(HARDWARE_COMBAT, 'Combat Drones', 5000);
self::assertEquals($expected, HardwareType::get(HARDWARE_COMBAT));