point-tools/old/tests/Skobkin/PointToolsBundle/DTO/TopUserTest.php

33 lines
734 B
PHP
Raw Normal View History

2017-01-09 20:58:15 +00:00
<?php
declare(strict_types=1);
2017-01-09 20:58:15 +00:00
namespace Tests\Skobkin\PointToolsBundle\DTO;
use App\DTO\TopUserDTO;
2017-01-09 20:58:15 +00:00
class TopUserTest extends \PHPUnit_Framework_TestCase
{
public function testCreate()
{
return new TopUserDTO('testuser', 3);
}
/**
* @depends testCreate
*/
public function testGetLogin(TopUserDTO $topUser)
{
$this->assertInternalType('string', $topUser->login);
$this->assertEquals('testuser', $topUser->login);
2017-01-09 20:58:15 +00:00
}
/**
* @depends testCreate
*/
public function testGetSubscribersCount(TopUserDTO $topUser)
{
$this->assertInternalType('int', $topUser->subscribersCount);
$this->assertEquals(3, $topUser->subscribersCount);
2017-01-09 20:58:15 +00:00
}
}