Ejemplo n.º 1
0
 /**
  * Activate specific FormatterTypes.
  *
  * @param FormatterType The FormatterType which should be added.
  * @since 0.2.0
  **/
 public function add($formatterType)
 {
     if (!InputValidator::isFormatterType($formatterType)) {
         return;
     }
     array_push($this->usedFormatters, $formatterType);
 }
 /**
  * @group utility
  */
 function testIsFormatterType()
 {
     $this->assertFalse(InputValidator::isFormatterType("NotAFormatterType"));
     $this->assertTrue(InputValidator::isFormatterType("IMAGE"));
 }