CC-2166: Packaging Improvements. Moved the Zend app into airtime_mvc. It is now installed to /var/www/airtime. Storage is now set to /srv/airtime/stor. Utils are now installed to /usr/lib/airtime/utils/. Added install/airtime-dircheck.php as a simple test to see if everything is install/uninstalled correctly.
This commit is contained in:
parent
514777e8d2
commit
b11cbd8159
4546 changed files with 138 additions and 51 deletions
54
airtime_mvc/library/pear/Calendar/tests/util_uri_test.php
Normal file
54
airtime_mvc/library/pear/Calendar/tests/util_uri_test.php
Normal file
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
// $Id: util_uri_test.php 166473 2004-08-16 08:55:24Z hfuecks $
|
||||
|
||||
require_once('simple_include.php');
|
||||
require_once('calendar_include.php');
|
||||
|
||||
Mock::generate('Calendar_Day','Mock_Calendar_Day');
|
||||
Mock::generate('Calendar_Engine_Interface','Mock_Calendar_Engine');
|
||||
|
||||
class TestOfUtilUri extends UnitTestCase {
|
||||
|
||||
var $MockCal;
|
||||
|
||||
function TestOfUtilUri() {
|
||||
$this->UnitTestCase('Test of Calendar_Util_Uri');
|
||||
}
|
||||
|
||||
function setUp() {
|
||||
$this->MockCal = & new Mock_Calendar_Day($this);
|
||||
$this->MockCal->setReturnValue('getEngine',new Mock_Calendar_Engine($this));
|
||||
}
|
||||
|
||||
function testFragments() {
|
||||
$Uri = new Calendar_Util_Uri('y','m','d','h','m','s');
|
||||
$Uri->setFragments('year','month','day','hour','minute','second');
|
||||
$this->assertEqual(
|
||||
'year=&month=&day=&hour=&minute=&second=',
|
||||
$Uri->this($this->MockCal, 'second')
|
||||
);
|
||||
}
|
||||
function testScalarFragments() {
|
||||
$Uri = new Calendar_Util_Uri('year','month','day','hour','minute','second');
|
||||
$Uri->scalar = true;
|
||||
$this->assertEqual(
|
||||
'&&&&&',
|
||||
$Uri->this($this->MockCal, 'second')
|
||||
);
|
||||
}
|
||||
function testSetSeperator() {
|
||||
$Uri = new Calendar_Util_Uri('year','month','day','hour','minute','second');
|
||||
$Uri->separator = '/';
|
||||
$this->assertEqual(
|
||||
'year=/month=/day=/hour=/minute=/second=',
|
||||
$Uri->this($this->MockCal, 'second')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (!defined('TEST_RUNNING')) {
|
||||
define('TEST_RUNNING', true);
|
||||
$test = &new TestOfUtilUri();
|
||||
$test->run(new HtmlReporter());
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue