for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PPP\DataModel;
/**
* @covers PPP\DataModel\MissingNode
*
* @licence AGPLv3+
* @author Thomas Pellissier Tanon
*/
class MissingNodeTest extends \PHPUnit_Framework_TestCase {
public function testGetType() {
$node = new MissingNode();
$this->assertEquals('missing', $node->getType());
}
public function testEquals() {
$this->assertTrue($node->equals(new MissingNode()));
public function testNonEquals() {
$this->assertFalse($node->equals(2));