/**
  * Property write access.
  * 
  * @param string $propertyName Name of the property.
  * @param mixed $propertyValue The value for the property.
  *
  * @throws ezcBasePropertyNotFoundException
  *         If a the value for the property options is not an instance of
  * @throws ezcBaseValueException
  *         If a the value for a property is out of range.
  * @ignore
  */
 public function __set($propertyName, $propertyValue)
 {
     switch ($propertyName) {
         case "map":
             if (is_array($propertyValue) === false) {
                 throw new ezcBaseValueException($propertyName, $propertyValue, "array");
             }
             break;
         default:
             return parent::__set($propertyName, $propertyValue);
     }
     $this->properties[$propertyName] = $propertyValue;
 }
 public function testGetResultString()
 {
     $collection = array("foo", "bar", "baz");
     $validator = new ezcConsoleQuestionDialogCollectionValidator($collection, null);
     $this->assertEquals("(foo/bar/baz)", $validator->getResultString());
     $validator->default = "foo";
     $this->assertEquals("(foo/bar/baz) [foo]", $validator->getResultString());
 }