Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 /**
  * Generated from @assert () === 'Result'.
  *
  * @covers pgn\tags\Result::getName
  */
 public function testGetName()
 {
     $this->assertSame('Result', $this->object->getName());
 }
Esempio n. 3
0
 /**
  * This test checks a that the resolved name is NULL.
  *
  * @return void
  */
 public function testGetNameWithoutValue()
 {
     $annotation = new Result('Result', array());
     $this->assertNull($annotation->getName());
 }