mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-11 08:21:52 +00:00
e4ab6d584e
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1606 48356398-32a2-884e-a903-53898d9a118a
21 lines
724 B
PHP
21 lines
724 B
PHP
<?php
|
|
|
|
class HTMLPurifier_ConfigSchema_Validator_CompositeTest extends HTMLPurifier_ConfigSchema_ValidatorHarness
|
|
{
|
|
|
|
public function testValidate() {
|
|
$arr = array('ID' => 'RD');
|
|
|
|
generate_mock_once('HTMLPurifier_ConfigSchema_Validator');
|
|
$mock1 = new HTMLPurifier_ConfigSchema_ValidatorMock();
|
|
$mock2 = new HTMLPurifier_ConfigSchema_ValidatorMock();
|
|
$mock1->expectOnce('validate', array($arr, $this->interchange));
|
|
$mock2->expectOnce('validate', array($arr, $this->interchange));
|
|
$this->validator->addValidator($mock1);
|
|
$this->validator->addValidator($mock2);
|
|
|
|
$this->validator->validate($arr, $this->interchange);
|
|
}
|
|
|
|
}
|