Improved tests

This commit is contained in:
Alejandro Celaya
2016-08-21 18:15:25 +02:00
parent 3376725152
commit 4185015bef
2 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace ShlinkioTest\Shlink\Core\Entity;
use PHPUnit_Framework_TestCase as TestCase;
use Shlinkio\Shlink\Core\Entity\Tag;
class TagTest extends TestCase
{
/**
* @test
*/
public function jsonSerializationOfTagsReturnsItsName()
{
$tag = new Tag();
$tag->setName('This is my name');
$this->assertEquals($tag->getName(), $tag->jsonSerialize());
}
}