for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2017 Ryan Parman <http://ryanparman.com>.
* Copyright (c) 2017 Contributors.
*
* http://opensource.org/licenses/Apache2.0
*/
declare(strict_types=1);
namespace SimplePie\Test\Integration\Atom\Feed;
use SimplePie\Enum\Serialization;
use SimplePie\Test\Integration\AbstractTestCase;
use SimplePie\Type\Node;
use Skyzyx\UtilityPack\Types;
* @coversNothing
class IdTest extends AbstractTestCase
{
public function testId(): void
$id = $this->feed->getId();
$this->assertEquals(Node::class, Types::getClassOrType($id));
$this->assertEquals('tag:github.com,2008:https://github.com/skyzyx/signer/releases', (string) $id);
$this->assertEquals('tag:github.com,2008:https://github.com/skyzyx/signer/releases', $id->getValue());
$this->assertEquals(Serialization::TEXT, $id->getSerialization());
}
public function testIdAtom10(): void
$id = $this->feed->getId('atom10');