/** * Test border color * * Set border color and test if each part has the same color * While looping, push values array to be asserted with getBorderColor */ public function testBorderColor() { $object = new Table(); $parts = array('Top', 'Left', 'Right', 'Bottom', 'InsideH', 'InsideV'); $value = 'FF0000'; $object->setBorderColor($value); foreach ($parts as $part) { $get = "getBorder{$part}Color"; $values[] = $value; $this->assertEquals($value, $object->{$get}()); } $this->assertEquals($values, $object->getBorderColor()); }