/**
  * @depends testSetMaxLengthCastsValueToIntegerAndSetsProperty
  */
 public function testGetMaxLengthReturnsPropertyValue()
 {
     $this->propertyStringDefinition->setMaxLength(100);
     $this->assertSame(100, $this->propertyStringDefinition->getMaxLength());
 }
 /**
  * Data provider for setProperty
  *
  * @return array
  */
 public function setPropertyDataProvider()
 {
     $propertyStringDefinition = new PropertyStringDefinition('foo');
     $propertyStringDefinition->setQueryName('foo:bar');
     $propertyIdDefinition = new PropertyIdDefinition('bar');
     $propertyIdDefinition->setQueryName('bar:baz');
     $propertyIdDefinitionWithEmptyQueryName = new PropertyIdDefinition('bar');
     return array(array(1, $propertyStringDefinition, '\'foo:bar\''), array(2, $propertyIdDefinition, '\'bar:baz\''), array(2, $propertyIdDefinitionWithEmptyQueryName, '\'bar:baz\'', function (QueryStatementTest $parent) {
         $parent->setExpectedException('\\Dkd\\PhpCmis\\Exception\\CmisInvalidArgumentException', 'Property has no query name!');
     }), array('2', $propertyIdDefinition, '\'bar:baz\'', function (QueryStatementTest $parent) {
         $parent->setExpectedException('\\Dkd\\PhpCmis\\Exception\\CmisInvalidArgumentException', 'Parameter index must be of type integer!');
     }));
 }