public function provideTestDispatchOperands()
{
return array(array('OperandDynamicLocalName', array('alias_1'), array('assert' => function ($test, $node) {
$test->assertEquals('alias_1', $node->getSelectorName());
}, 'phpcr_class' => 'NodeLocalNameInterface')), array('OperandDynamicName', array('alias_1'), array('assert' => function ($test, $node) {
$test->assertEquals('alias_1', $node->getSelectorName());
}, 'phpcr_class' => 'NodeNameInterface')), array('OperandDynamicFullTextSearchScore', array('alias_1'), array('assert' => function ($test, $node) {
$test->assertEquals('alias_1', $node->getSelectorName());
}, 'phpcr_class' => 'FullTextSearchScoreInterface')), array('OperandDynamicLength', array('alias_1.field'), array('assert' => function ($test, $node) {
$propertyValue = $node->getPropertyValue();
$test->assertInstanceOf('PHPCR\\Query\\QOM\\PropertyValueInterface', $propertyValue);
$test->assertEquals('alias_1', $propertyValue->getSelectorName());
$test->assertEquals('field_phpcr', $propertyValue->getPropertyName());
}, 'phpcr_class' => 'LengthInterface')), array('OperandDynamicField', array('alias_1.field'), array('assert' => function ($test, $node) {
$test->assertEquals('alias_1', $node->getSelectorName());
$test->assertEquals('field_phpcr', $node->getPropertyName());
}, 'phpcr_class' => 'PropertyValueinterface')), array('OperandDynamicLowerCase', array('alias_1'), array('phpcr_class' => 'LowerCaseInterface', 'add_child_operand' => true, 'assert' => function ($test, $node) {
$op = $node->getOperand();
$test->assertInstanceOf('PHPCR\\Query\\QOM\\NodeLocalNameInterface', $op);
})), array('OperandDynamicUpperCase', array('alias_1'), array('assert' => function ($test, $node) {
$op = $node->getOperand();
$test->assertInstanceOf('PHPCR\\Query\\QOM\\NodeLocalNameInterface', $op);
}, 'add_child_operand' => true, 'phpcr_class' => 'UpperCaseInterface')), array('OperandStaticParameter', array('variable_name'), array('assert' => function ($test, $node) {
$test->assertEquals('variable_name', $node->getBindVariableName());
}, 'phpcr_class' => 'BindVariableValueInterface')), array('OperandStaticLiteral', array('literal_value'), array('assert' => function ($test, $node) {
$test->assertEquals('literal_value', $node->getLiteralValue());
}, 'phpcr_class' => 'LiteralInterface')));
}