function testPage() { $XML = simplexml_load_string($this->pageString, "SimpleXMLElement"); $result = new Result($XML); $this->assertEquals("SUCCESS", $result->getName()); $this->assertEquals("pages.test", $result->getTarget()); $this->assertEquals("minimal", $result->getTemplateName()); $this->assertEquals("page", $result->getType()); $this->assertEquals("pages/test.php", $result->getViewLocation()); }
/** * Generated from @assert () === 'Result'. * * @covers pgn\tags\Result::getName */ public function testGetName() { $this->assertSame('Result', $this->object->getName()); }
/** * This test checks a that the resolved name is NULL. * * @return void */ public function testGetNameWithoutValue() { $annotation = new Result('Result', array()); $this->assertNull($annotation->getName()); }