mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 02:14:06 +02:00
kills and player
This commit is contained in:
parent
71db345f9b
commit
f0065d8e86
14 changed files with 861 additions and 143 deletions
|
|
@ -52,4 +52,15 @@ abstract class TestCase extends \PHPUnit\Framework\TestCase {
|
|||
$factory = new \RandomLib\Factory;
|
||||
return $factory->getMediumStrengthGenerator();
|
||||
}
|
||||
|
||||
protected function getSteamId($steamId, $name) {
|
||||
$steamId = new \SteamId($steamId, false);
|
||||
$closure = \Closure::bind(function ($steamId) use ($name) {
|
||||
$steamId->nickname = $name;
|
||||
$steamId->imageUrl = 'foo';
|
||||
}, null, $steamId);
|
||||
$closure($steamId);
|
||||
return $steamId;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue