for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Lichtenwallner (https://lichtenwallner.at)
*
* @see https://github.com/jolicht/markdown-cms for the canonical source repository
* @license https://github.com/jolicht/markdown-cms/blob/master/LICENSE MIT
* @copyright Copyright (c) Johannes Lichtenwallner
*/
declare(strict_types = 1);
namespace JolichtTest\MarkdownCms\Taxonomy;
use Jolicht\MarkdownCms\Taxonomy\Tag;
use PHPUnit\Framework\TestCase;
class TagTest extends TestCase
{
private $tag;
protected function setUp()
$this->tag = new Tag('test-id', 'testTitle');
}
public function testGetId()
$this->assertSame('test-id', $this->tag->getId());
public function testGetTitle()
$this->assertSame('testTitle', $this->tag->getTitle());
public function testTitleDefaultsToId()
$tag = new Tag('testId');
$this->assertSame('testId', $tag->getTitle());