2017-01-09 20:58:15 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests\Skobkin\PointToolsBundle\DTO;
|
|
|
|
|
2023-03-11 16:27:07 +00:00
|
|
|
use src\PointToolsBundle\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->getLogin());
|
|
|
|
$this->assertEquals('testuser', $topUser->getLogin());
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @depends testCreate
|
|
|
|
*/
|
|
|
|
public function testGetSubscribersCount(TopUserDTO $topUser)
|
|
|
|
{
|
|
|
|
$this->assertInternalType('int', $topUser->getSubscribersCount());
|
|
|
|
$this->assertEquals(3, $topUser->getSubscribersCount());
|
|
|
|
}
|
|
|
|
}
|