Esempio n. 1
0
 /**
  * Set/get relation Id
  */
 public function testRelationID()
 {
     $oFooter = new Footer(0);
     $iVal = rand(1, 1000);
     $oFooter->setRelationId($iVal);
     $this->assertEquals($iVal, $oFooter->getRelationId());
     $this->assertEquals(Footer::AUTO, $oFooter->getType());
 }
 function test_simple_components()
 {
     $comp = new Blank(3);
     $this->assertIdentical($comp->getType(), BLANK);
     $comp = new Block("hoho", 3);
     $this->assertIdentical($comp->getType(), BLOCK);
     $comp = new Heading("hoho", 3);
     $this->assertIdentical($comp->getType(), HEADING);
     $comp = new Footer("hoho", 3);
     $this->assertIdentical($comp->getType(), FOOTER);
 }