public function testAddPolygonWithDefaultColor() { $object = new _files\BarcodeTest(); $points = array(); $color = 123456; $object->setForeColor($color); $filled = false; $instructions = array('type' => 'polygon', 'points' => $points, 'color' => $color, 'filled' => $filled); $object->addPolygon($points, null, $filled); $this->assertSame(array($instructions), $object->getInstructions()); }