/**
  * Apply filter condition
  *
  * @param MultipleValueNode $field
  * @param string $condition
  * @param mixed $value
  * @return bool
  */
 public function apply($field, $condition, $value)
 {
     $result = false;
     switch ($condition) {
         case ApplierInterface::IN:
             $field->in($value);
             $result = true;
             break;
         case ApplierInterface::EQ:
             $field->is($value);
             $result = true;
             break;
         case ApplierInterface::LIKE:
             $value = trim($value, "% \r\n\t");
             $field->is($value);
             $result = true;
             break;
     }
     return $result;
 }
 public function testIn()
 {
     $node = new Braintree\MultipleValueNode('field');
     $node->in(['firstValue', 'secondValue']);
     $this->assertEquals(['firstValue', 'secondValue'], $node->toParam());
 }