| Current Path : /var/www/www.indacotrentino.com/www/vendor/phpgt/dom/test/phpunit/ |
| Current File : /var/www/www.indacotrentino.com/www/vendor/phpgt/dom/test/phpunit/ProcessingInstructionTest.php |
<?php
namespace Gt\Dom\Test;
use Gt\Dom\ProcessingInstruction;
use Gt\Dom\Test\TestFactory\DocumentTestFactory;
use Gt\Dom\XMLDocument;
use PHPUnit\Framework\TestCase;
class ProcessingInstructionTest extends TestCase {
public function testIsEqualNode():void {
$document = new XMLDocument();
$sut = $document->createProcessingInstruction("target", "data");
$other = $sut->cloneNode();
self::assertTrue($sut->isEqualNode($other));
}
public function testIsEqualNodeNotEqual():void {
$document = new XMLDocument();
$sut = $document->createProcessingInstruction("target", "data");
/** @var ProcessingInstruction $other */
$other = $sut->cloneNode();
$other->data = "other-data";
self::assertFalse($sut->isEqualNode($other));
}
}