Example #1
0
 /**
  * Test border size
  *
  * Set border size and test if each part has the same size
  * While looping, push values array to be asserted with getBorderSize
  * Value is in eights of a point, i.e. 4 / 8 = .5pt
  */
 public function testBorderSize()
 {
     $object = new Table();
     $parts = array('Top', 'Left', 'Right', 'Bottom', 'InsideH', 'InsideV');
     $value = 4;
     $object->setBorderSize($value);
     foreach ($parts as $part) {
         $get = "getBorder{$part}Size";
         $values[] = $value;
         $this->assertEquals($value, $object->{$get}());
     }
     $this->assertEquals($values, $object->getBorderSize());
 }