2008-03-02 01:55:14 +00:00
|
|
|
<?php
|
|
|
|
|
2008-03-02 02:57:31 +00:00
|
|
|
class HTMLPurifier_ConfigSchema_ValidatorHarness extends UnitTestCase
|
2008-03-02 01:55:14 +00:00
|
|
|
{
|
|
|
|
|
2008-03-02 02:57:31 +00:00
|
|
|
protected $interchange, $validator;
|
2008-03-02 01:55:14 +00:00
|
|
|
|
|
|
|
public function setup() {
|
|
|
|
generate_mock_once('HTMLPurifier_ConfigSchema_Interchange');
|
2008-03-02 02:57:31 +00:00
|
|
|
$this->interchange = new HTMLPurifier_ConfigSchema_InterchangeMock();
|
2008-03-02 01:55:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protected function expectSchemaException($msg) {
|
|
|
|
$this->expectException(new HTMLPurifier_ConfigSchema_Exception($msg));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|