/**
* @dataProvider providePropertyValidationOutOfRangeCharacters
*/
public function testPropertyValidationOutOfRangeCharacters($value, $isValid)
{
$property = $this->getPropertyMock(array('getType' => PropertyType::STRING, 'isMultiple' => false, 'getValue' => $value, 'getPath' => '/path/to'));
if (false === $isValid) {
$this->setExpectedException('PHPCR\\ValueFormatException', 'Invalid character detected in value');
}
$nodeType = $this->getNodeTypeMock(array('getDeclaredChildNodeDefinitions' => array(), 'getDeclaredPropertyDefinitions' => array(), 'getDeclaredSupertypes' => array(), 'getName' => 'node-type-1'));
$node = $this->getNodeMock(array('getPrimaryNodeType' => $nodeType, 'getMixinNodeTypes' => array(), 'getProperties' => array($property), 'getName' => 'node1', 'getPath' => 'path/to/node'));
$this->processor->process($node);
}