1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 09:54:17 +02:00

dont fetch data from steam

This commit is contained in:
Robin Appelman 2017-03-21 21:50:51 +01:00
commit 71db345f9b
5 changed files with 18 additions and 6 deletions

View file

@ -1,4 +1,6 @@
<?php namespace Demostf\API;
<?php declare(strict_types = 1);
namespace Demostf\API;
use Flight;

View file

@ -1,4 +1,5 @@
<?php namespace Demostf\API;
<?php declare(strict_types = 1);
namespace Demostf\API;
require_once __DIR__ . '/init.php';

View file

@ -1,4 +1,5 @@
<?php namespace Demostf\API\Test\Providers;
<?php declare(strict_types = 1);
namespace Demostf\API\Test\Providers;
use Demostf\API\Demo\ChatMessage;
use Demostf\API\Providers\ChatProvider;

View file

@ -1,4 +1,5 @@
<?php namespace Demostf\API\Test\Providers;
<?php declare(strict_types = 1);
namespace Demostf\API\Test\Providers;
use Demostf\API\Providers\InfoProvider;
use Demostf\API\Test\TestCase;

View file

@ -1,4 +1,5 @@
<?php namespace Demostf\API\Test\Providers;
<?php declare(strict_types = 1);
namespace Demostf\API\Test\Providers;
use Demostf\API\Providers\UserProvider;
use Demostf\API\Test\TestCase;
@ -13,7 +14,13 @@ class UserProviderTest extends TestCase {
public function setUp() {
parent::setUp();
$this->steamId = new \SteamId('76561198024494988');
$this->steamId = new \SteamId('76561198024494988', false);
$closure = \Closure::bind(function($steamId) {
$steamId->nickname = 'Icewind';
$steamId->imageUrl = 'foo';
}, null, $this->steamId);
$closure($this->steamId);
$this->provider = new UserProvider($this->getDatabaseConnection(), $this->getRandomGenerator());
}