adding zend project folders into old campcaster.
This commit is contained in:
parent
56abfaf28e
commit
7ef0c18b26
4045 changed files with 1054952 additions and 0 deletions
34
library/pear/Calendar/tests/validator_error_test.php
Normal file
34
library/pear/Calendar/tests/validator_error_test.php
Normal file
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
// $Id: validator_error_test.php 159563 2004-05-24 22:25:43Z quipo $
|
||||
|
||||
require_once('simple_include.php');
|
||||
require_once('calendar_include.php');
|
||||
|
||||
class TestOfValidationError extends UnitTestCase {
|
||||
var $vError;
|
||||
function TestOfValidationError() {
|
||||
$this->UnitTestCase('Test of Validation Error');
|
||||
}
|
||||
function setUp() {
|
||||
$this->vError = new Calendar_Validation_Error('foo',20,'bar');
|
||||
}
|
||||
function testGetUnit() {
|
||||
$this->assertEqual($this->vError->getUnit(),'foo');
|
||||
}
|
||||
function testGetValue() {
|
||||
$this->assertEqual($this->vError->getValue(),20);
|
||||
}
|
||||
function testGetMessage() {
|
||||
$this->assertEqual($this->vError->getMessage(),'bar');
|
||||
}
|
||||
function testToString() {
|
||||
$this->assertEqual($this->vError->toString(),'foo = 20 [bar]');
|
||||
}
|
||||
}
|
||||
|
||||
if (!defined('TEST_RUNNING')) {
|
||||
define('TEST_RUNNING', true);
|
||||
$test = &new TestOfValidationError();
|
||||
$test->run(new HtmlReporter());
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue