for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of SteamScore.
*
* (c) SteamScore <[email protected]>
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
namespace SteamScore\Api\Tests\Domain\Entities;
use Doctrine\Common\Collections\Collection;
use PHPUnit\Framework\TestCase;
use Ramsey\Uuid\UuidInterface;
use SteamScore\Api\Domain\Entities\Game;
/**
* @coversDefaultClass Game
class GameTest extends TestCase
{
* Tests that `getAchievements()` returns a collection.
public function testGetAchievements()
$game = new Game();
$this->assertInstanceOf(Collection::class, $game->getAchievements());
}
* Tests that `getId()` returns a UUID.
public function testGetId()
$this->assertInstanceOf(UuidInterface::class, $game->getId());