diff --git a/libraries/index.html b/libraries/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/access/index.html b/libraries/joomla/access/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/access/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/application/cli.php b/libraries/joomla/application/cli.php index ebf49844c8..35c9d34bc2 100644 --- a/libraries/joomla/application/cli.php +++ b/libraries/joomla/application/cli.php @@ -365,7 +365,7 @@ protected function fetchConfigurationData($file = '', $class = 'JConfig') } else { - throw new Exception('Configuration class does not exist.'); + throw new RuntimeException('Configuration class does not exist.'); } } diff --git a/libraries/joomla/application/component/controller.php b/libraries/joomla/application/component/controller.php index 18922a1fff..239c33bfe1 100644 --- a/libraries/joomla/application/component/controller.php +++ b/libraries/joomla/application/component/controller.php @@ -287,7 +287,7 @@ public static function getInstance($prefix, $config = array()) } else { - throw new Exception(JText::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER', $type, $format)); + throw new InvalidArgumentException(JText::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER', $type, $format)); } } @@ -298,7 +298,7 @@ public static function getInstance($prefix, $config = array()) } else { - throw new Exception(JText::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER_CLASS', $class)); + throw new InvalidArgumentException(JText::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER_CLASS', $class)); } return self::$instance; diff --git a/libraries/joomla/application/component/index.html b/libraries/joomla/application/component/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/application/component/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/application/index.html b/libraries/joomla/application/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/application/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/application/input/index.html b/libraries/joomla/application/input/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/application/input/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/application/module/index.html b/libraries/joomla/application/module/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/application/module/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/application/web.php b/libraries/joomla/application/web.php index 7b1a6b701a..9f234b3050 100644 --- a/libraries/joomla/application/web.php +++ b/libraries/joomla/application/web.php @@ -324,13 +324,13 @@ public function execute() $this->compress(); } - // Trigger the onBeforeRender event. + // Trigger the onBeforeRespond event. $this->triggerEvent('onBeforeRespond'); // Send the application response. $this->respond(); - // Trigger the onBeforeRender event. + // Trigger the onAfterRespond event. $this->triggerEvent('onAfterRespond'); } @@ -367,14 +367,14 @@ protected function render() 'params' => '' ); - // Handle the convention-based default case for themes path. - if (defined('JPATH_BASE')) + if ($this->get('themes.base')) { - $options['directory'] = JPATH_BASE . '/themes'; + $options['directory'] = $this->get('themes.base'); } + // Fall back to constants. else { - $options['directory'] = dirname(__FILE__) . '/themes'; + $options['directory'] = (defined('JPATH_BASE') ? JPATH_BASE : dirname(__FILE__)) . '/themes'; } // Parse the document. @@ -1042,7 +1042,7 @@ protected function fetchConfigurationData($file = '', $class = 'JConfig') } else { - throw new Exception('Configuration class does not exist.'); + throw new RuntimeException('Configuration class does not exist.'); } } diff --git a/libraries/joomla/base/index.html b/libraries/joomla/base/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/base/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/base/object.php b/libraries/joomla/base/object.php index 8d256d0b06..abce6df629 100644 --- a/libraries/joomla/base/object.php +++ b/libraries/joomla/base/object.php @@ -239,9 +239,11 @@ public function setError($error) */ function toString() { + // @codeCoverageIgnoreStart // Deprecation warning. JLog::add('JObject::toString() is deprecated.', JLog::WARNING, 'deprecated'); return $this->__toString(); + // @codeCoverageIgnoreEnd } } diff --git a/libraries/joomla/base/observable.php b/libraries/joomla/base/observable.php index f0228e7d6f..2f605ea628 100644 --- a/libraries/joomla/base/observable.php +++ b/libraries/joomla/base/observable.php @@ -16,6 +16,7 @@ * @subpackage Base * @since 11.1 * @deprecated 12.3 + * @codeCoverageIgnore */ class JObservable extends JObject { diff --git a/libraries/joomla/base/observer.php b/libraries/joomla/base/observer.php index 703a222bc4..ece192a2a9 100644 --- a/libraries/joomla/base/observer.php +++ b/libraries/joomla/base/observer.php @@ -16,6 +16,7 @@ * @subpackage Base * @since 11.1 * @deprecated 12.3 + * @codeCoverageIgnore */ abstract class JObserver extends JObject { diff --git a/libraries/joomla/cache/controller/index.html b/libraries/joomla/cache/controller/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/cache/controller/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/cache/index.html b/libraries/joomla/cache/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/cache/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/cache/storage/helpers/index.html b/libraries/joomla/cache/storage/helpers/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/cache/storage/helpers/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/cache/storage/index.html b/libraries/joomla/cache/storage/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/cache/storage/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/client/index.html b/libraries/joomla/client/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/client/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/database/database/index.html b/libraries/joomla/database/database/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/database/database/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/database/index.html b/libraries/joomla/database/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/database/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/database/table/index.html b/libraries/joomla/database/table/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/database/table/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/document/error/index.html b/libraries/joomla/document/error/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/document/error/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/document/feed/index.html b/libraries/joomla/document/feed/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/document/feed/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/document/feed/renderer/index.html b/libraries/joomla/document/feed/renderer/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/document/feed/renderer/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/document/html/index.html b/libraries/joomla/document/html/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/document/html/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/document/html/renderer/index.html b/libraries/joomla/document/html/renderer/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/document/html/renderer/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/document/index.html b/libraries/joomla/document/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/document/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/document/json/index.html b/libraries/joomla/document/json/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/document/json/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/document/opensearch/index.html b/libraries/joomla/document/opensearch/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/document/opensearch/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/document/raw/index.html b/libraries/joomla/document/raw/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/document/raw/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/document/xml/index.html b/libraries/joomla/document/xml/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/document/xml/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/environment/index.html b/libraries/joomla/environment/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/environment/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/error/index.html b/libraries/joomla/error/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/error/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/event/index.html b/libraries/joomla/event/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/event/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/filesystem/archive/index.html b/libraries/joomla/filesystem/archive/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/filesystem/archive/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/filesystem/index.html b/libraries/joomla/filesystem/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/filesystem/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/filesystem/streams/index.html b/libraries/joomla/filesystem/streams/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/filesystem/streams/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/filesystem/support/index.html b/libraries/joomla/filesystem/support/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/filesystem/support/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/filter/index.html b/libraries/joomla/filter/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/filter/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/form/fields/index.html b/libraries/joomla/form/fields/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/form/fields/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/form/index.html b/libraries/joomla/form/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/form/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/form/rules/index.html b/libraries/joomla/form/rules/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/form/rules/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/html/html/index.html b/libraries/joomla/html/html/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/html/html/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/html/index.html b/libraries/joomla/html/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/html/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/html/parameter/element/index.html b/libraries/joomla/html/parameter/element/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/html/parameter/element/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/html/parameter/index.html b/libraries/joomla/html/parameter/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/html/parameter/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/html/toolbar/button/index.html b/libraries/joomla/html/toolbar/button/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/html/toolbar/button/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/html/toolbar/index.html b/libraries/joomla/html/toolbar/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/html/toolbar/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/index.html b/libraries/joomla/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/installer/adapters/index.html b/libraries/joomla/installer/adapters/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/installer/adapters/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/installer/index.html b/libraries/joomla/installer/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/installer/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/language/index.html b/libraries/joomla/language/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/language/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/mail/index.html b/libraries/joomla/mail/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/mail/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/media/filters/index.html b/libraries/joomla/media/filters/index.html deleted file mode 100644 index 42682b4746..0000000000 --- a/libraries/joomla/media/filters/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/libraries/joomla/media/index.html b/libraries/joomla/media/index.html deleted file mode 100644 index 42682b4746..0000000000 --- a/libraries/joomla/media/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/libraries/joomla/plugin/index.html b/libraries/joomla/plugin/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/plugin/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/registry/format/index.html b/libraries/joomla/registry/format/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/registry/format/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/registry/index.html b/libraries/joomla/registry/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/registry/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/session/index.html b/libraries/joomla/session/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/session/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/session/storage/index.html b/libraries/joomla/session/storage/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/session/storage/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/updater/adapters/collection.php b/libraries/joomla/updater/adapters/collection.php index 81170fc008..14433312cc 100644 --- a/libraries/joomla/updater/adapters/collection.php +++ b/libraries/joomla/updater/adapters/collection.php @@ -121,13 +121,13 @@ public function _startElement($parser, $name, $attrs = array()) if (!array_key_exists($col, $attrs)) { $attrs[$col] = ''; - if ($col == 'CLIENT_ID') + if ($col == 'CLIENT') { $attrs[$col] = 'site'; } } } - $client = JApplicationHelper::getClientInfo($attrs['CLIENT_ID'], 1); + $client = JApplicationHelper::getClientInfo($attrs['CLIENT'], 1); $attrs['CLIENT_ID'] = $client->id; // Lower case all of the fields foreach ($attrs as $key => $attr) diff --git a/libraries/joomla/updater/adapters/index.html b/libraries/joomla/updater/adapters/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/updater/adapters/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/updater/index.html b/libraries/joomla/updater/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/updater/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/user/helper.php b/libraries/joomla/user/helper.php index 0afdddf22a..0ebed05234 100644 --- a/libraries/joomla/user/helper.php +++ b/libraries/joomla/user/helper.php @@ -531,14 +531,6 @@ public static function genRandomPassword($length = 8) $len = strlen($salt); $makepass = ''; - $stat = @stat(__FILE__); - if (empty($stat) || !is_array($stat)) - { - $stat = array(php_uname()); - } - - mt_srand(crc32(microtime() . implode('|', $stat))); - for ($i = 0; $i < $length; $i++) { $makepass .= $salt[mt_rand(0, $len - 1)]; diff --git a/libraries/joomla/user/index.html b/libraries/joomla/user/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/user/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/joomla/utilities/garbagecron.txt b/libraries/joomla/utilities/garbagecron.txt deleted file mode 100644 index 42fc98b6d6..0000000000 --- a/libraries/joomla/utilities/garbagecron.txt +++ /dev/null @@ -1,25 +0,0 @@ -gc(); \ No newline at end of file diff --git a/libraries/joomla/utilities/index.html b/libraries/joomla/utilities/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/joomla/utilities/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/phpmailer/index.html b/libraries/phpmailer/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/phpmailer/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/phpmailer/language/index.html b/libraries/phpmailer/language/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/phpmailer/language/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/phputf8/index.html b/libraries/phputf8/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/phputf8/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/phputf8/mbstring/index.html b/libraries/phputf8/mbstring/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/phputf8/mbstring/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/phputf8/native/index.html b/libraries/phputf8/native/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/phputf8/native/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/phputf8/utils/index.html b/libraries/phputf8/utils/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/phputf8/utils/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/simplepie/idn/index.html b/libraries/simplepie/idn/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/simplepie/idn/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libraries/simplepie/index.html b/libraries/simplepie/index.html deleted file mode 100644 index 2efb97f319..0000000000 --- a/libraries/simplepie/index.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/media/system/js/mootree-uncompressed.js b/media/system/js/mootree-uncompressed.js index d80688ddee..4885fe476d 100644 --- a/media/system/js/mootree-uncompressed.js +++ b/media/system/js/mootree-uncompressed.js @@ -629,7 +629,7 @@ var MooTreeNode = new Class({ url: url, onSuccess: this._loaded.bind(this), onFailure: this._load_err.bind(this) - }).send(url, vars || ''); + }).send(vars || ''); }.bind(this).delay(20); //window.setTimeout(f.bind(this), 20); // allowing a small delay for the browser to draw the loader-icon. diff --git a/media/system/js/mootree.js b/media/system/js/mootree.js index f23f70d730..8510df3411 100644 --- a/media/system/js/mootree.js +++ b/media/system/js/mootree.js @@ -1 +1 @@ -var MooTreeIcon=["I","L","Lminus","Lplus","Rminus","Rplus","T","Tminus","Tplus","_closed","_doc","_open","minus","plus"];var MooTreeControl=new Class({initialize:function(b,a){a.control=this;a.div=b.div;this.root=new MooTreeNode(a);this.index=new Object();this.enabled=true;this.theme=b.theme||"mootree.gif";this.loader=b.loader||{icon:"mootree_loader.gif",text:"Loading...",color:"#a0a0a0"};this.selected=null;this.mode=b.mode;this.grid=b.grid;this.onExpand=b.onExpand||new Function();this.onSelect=b.onSelect||new Function();this.onClick=b.onClick||new Function();this.root.update(true)},insert:function(a){a.control=this;return this.root.insert(a)},select:function(a){this.onClick(a);a.onClick();if(this.selected===a){return}if(this.selected){this.selected.select(false);this.onSelect(this.selected,false)}this.selected=a;a.select(true);this.onSelect(a,true)},expand:function(){this.root.toggle(true,true)},collapse:function(){this.root.toggle(true,false)},get:function(a){return this.index[a]||null},adopt:function(b,a){if(a===undefined){a=this.root}this.disable();this._adopt(b,a);a.update(true);$(b).destroy();this.enable()},_adopt:function(a,j){e=$(a);var h=0,o=e.getChildren();for(h=0;h1){c[c.length-2].update(true)}return b},remove:function(){var a=this.parent;this._remove();a.update(true)},_remove:function(){var b=this.nodes;while(b.length){b[b.length-1]._remove()}delete this.control.index[this.id];this.div.main.destroy();this.div.sub.destroy();if(this.parent){var a=this.parent.nodes;a.erase(this);if(a.length){a[a.length-1].last=true}}},clear:function(){this.control.disable();while(this.nodes.length){this.nodes[this.nodes.length-1].remove()}this.control.enable()},update:function(c,g){var b=true;if(!this.control.enabled){this.invalidated=true;b=false}if(g){if(!this.invalidated){b=false}else{this.invalidated=false}}if(b){var a;this.div.main.className="mooTree_node"+(this.selected?" mooTree_selected":"");var f=this,d="";while(f.parent){f=f.parent;d=this.getImg(f.last||!this.control.grid?"":"I")+d}this.div.indent.innerHTML=d;a=this.div.text;a.empty();a.appendText(this.text);if(this.color){a.style.color=this.color}this.div.icon.innerHTML=this.getImg(this.nodes.length?(this.open?(this.openicon||this.icon||"_open"):(this.icon||"_closed")):(this.icon||(this.control.mode=="folders"?"_closed":"_doc")));this.div.gadget.innerHTML=this.getImg((this.control.grid?(this.control.root==this?(this.nodes.length?"R":""):(this.last?"L":"T")):"")+(this.nodes.length?(this.open?"minus":"plus"):""));this.div.sub.style.display=this.open?"block":"none"}if(c){this.nodes.forEach(function(h){h.update(true,g)})}},getImg:function(c){var f='
1){c[c.length-2].update(true)}return b},remove:function(){var a=this.parent;this._remove();a.update(true)},_remove:function(){var b=this.nodes;while(b.length){b[b.length-1]._remove()}delete this.control.index[this.id];this.div.main.destroy();this.div.sub.destroy();if(this.parent){var a=this.parent.nodes;a.erase(this);if(a.length){a[a.length-1].last=true}}},clear:function(){this.control.disable();while(this.nodes.length){this.nodes[this.nodes.length-1].remove()}this.control.enable()},update:function(c,g){var b=true;if(!this.control.enabled){this.invalidated=true;b=false}if(g){if(!this.invalidated){b=false}else{this.invalidated=false}}if(b){var a;this.div.main.className="mooTree_node"+(this.selected?" mooTree_selected":"");var f=this,d="";while(f.parent){f=f.parent;d=this.getImg(f.last||!this.control.grid?"":"I")+d}this.div.indent.innerHTML=d;a=this.div.text;a.empty();a.appendText(this.text);if(this.color){a.style.color=this.color}this.div.icon.innerHTML=this.getImg(this.nodes.length?(this.open?(this.openicon||this.icon||"_open"):(this.icon||"_closed")):(this.icon||(this.control.mode=="folders"?"_closed":"_doc")));this.div.gadget.innerHTML=this.getImg((this.control.grid?(this.control.root==this?(this.nodes.length?"R":""):(this.last?"L":"T")):"")+(this.nodes.length?(this.open?"minus":"plus"):""));this.div.sub.style.display=this.open?"block":"none"}if(c){this.nodes.forEach(function(h){h.update(true,g)})}},getImg:function(c){var f='
setExpectedException('Exception'); + $this->setExpectedException('RuntimeException'); } if (is_null($file) && is_null($class)) diff --git a/tests/suite/joomla/application/JWebTest.php b/tests/suite/joomla/application/JWebTest.php index 822d811700..7899857a75 100644 --- a/tests/suite/joomla/application/JWebTest.php +++ b/tests/suite/joomla/application/JWebTest.php @@ -756,7 +756,7 @@ public function testFetchConfigurationData($file, $class, $expectsClass, $expect { if ($expectedException) { - $this->setExpectedException('Exception'); + $this->setExpectedException('RuntimeException'); } if (is_null($file) && is_null($class)) diff --git a/tests/suite/joomla/application/component/JControllerTest.php b/tests/suite/joomla/application/component/JControllerTest.php index 75cafc5bf9..768f3ebf82 100644 --- a/tests/suite/joomla/application/component/JControllerTest.php +++ b/tests/suite/joomla/application/component/JControllerTest.php @@ -203,7 +203,7 @@ public function testGetInstance() * * @return void * - * @expectedException Exception + * @expectedException InvalidArgumentException * @since 11.3 */ public function testGetInstanceException() @@ -240,9 +240,9 @@ public function testGetName() /** * Test JController::getTask(). - * + * * @return void - * + * * @since 11.3 */ public function testGetTask() diff --git a/tests/suite/joomla/base/JObjectTest.php b/tests/suite/joomla/base/JObjectTest.php index c2371c4e7f..8442ed4413 100644 --- a/tests/suite/joomla/base/JObjectTest.php +++ b/tests/suite/joomla/base/JObjectTest.php @@ -150,6 +150,17 @@ public function testGetError() { $this->o->getError(), 'Should return the third test error' ); + $this->assertFalse( + $this->o->getError(20), + 'Should return false, since the error does not exist' + ); + + $exception = new Exception('error'); + $this->o->setError($exception); + $this->assertThat( + $this->o->getError(3, true), + $this->equalTo((string)$exception) + ); } /** diff --git a/tests/suite/joomla/cache/JCacheControllerTest.php b/tests/suite/joomla/cache/JCacheControllerTest.php new file mode 100644 index 0000000000..96e30c2ab4 --- /dev/null +++ b/tests/suite/joomla/cache/JCacheControllerTest.php @@ -0,0 +1,110 @@ +object = new JCacheController; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement test__call(). + */ + public function test__call() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetInstance(). + */ + public function testGetInstance() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetCaching(). + */ + public function testSetCaching() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetLifeTime(). + */ + public function testSetLifeTime() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddIncludePath(). + */ + public function testAddIncludePath() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGet(). + */ + public function testGet() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStore(). + */ + public function testStore() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/cache/JCacheStorageTest.php b/tests/suite/joomla/cache/JCacheStorageTest.php index 93a52072dd..753251f373 100644 --- a/tests/suite/joomla/cache/JCacheStorageTest.php +++ b/tests/suite/joomla/cache/JCacheStorageTest.php @@ -79,7 +79,12 @@ protected function setUp() JCacheStorageTest::$actualError = array(); $this->object = new JCacheStorage; - + + $this->checkStores(); + } + + protected function checkStores() + { $this->apcAvailable = extension_loaded('apc'); $this->eacceleratorAvailable = extension_loaded('eaccelerator') && function_exists('eaccelerator_get'); $this->memcacheAvailable = (extension_loaded('memcache') && class_exists('Memcache')) != true; @@ -105,6 +110,7 @@ protected function tearDown() */ function casesGetInstance() { + $this->checkStores(); return array( 'defaultfile' => array( 'file', @@ -127,7 +133,7 @@ function casesGetInstance() 'lifetime' => null, 'now' => time(), ), - $this->apcAvailable ? 'JCacheStorageApc' : false, + ($this->apcAvailable ? 'JCacheStorageApc' : false), ), 'defaulteaccelerator' => array( 'eaccelerator', diff --git a/tests/suite/joomla/cache/storage/JCacheStorageCacheliteTest.php b/tests/suite/joomla/cache/storage/JCacheStorageCacheliteTest.php new file mode 100644 index 0000000000..d3c4e0041b --- /dev/null +++ b/tests/suite/joomla/cache/storage/JCacheStorageCacheliteTest.php @@ -0,0 +1,111 @@ +object = new JCacheStorageCachelite; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testGet(). + */ + public function testGet() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetAll(). + */ + public function testGetAll() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStore(). + */ + public function testStore() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRemove(). + */ + public function testRemove() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClean(). + */ + public function testClean() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGc(). + */ + public function testGc() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testTest(). + */ + public function testTest() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/cache/storage/JCacheStorageWincacheTest.php b/tests/suite/joomla/cache/storage/JCacheStorageWincacheTest.php new file mode 100644 index 0000000000..b703abd11b --- /dev/null +++ b/tests/suite/joomla/cache/storage/JCacheStorageWincacheTest.php @@ -0,0 +1,110 @@ +object = new JCacheStorageWincache; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testGet(). + */ + public function testGet() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetAll(). + */ + public function testGetAll() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStore(). + */ + public function testStore() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRemove(). + */ + public function testRemove() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClean(). + */ + public function testClean() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGc(). + */ + public function testGc() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testTest(). + */ + public function testTest() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/cache/storage/helpers/JCacheStorageHelperTest.php b/tests/suite/joomla/cache/storage/helpers/JCacheStorageHelperTest.php new file mode 100644 index 0000000000..5e9ee9a2eb --- /dev/null +++ b/tests/suite/joomla/cache/storage/helpers/JCacheStorageHelperTest.php @@ -0,0 +1,50 @@ +object = new JCacheStorageHelper; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testUpdateSize(). + */ + public function testUpdateSize() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/document/JDocumentRendererTest.php b/tests/suite/joomla/document/JDocumentRendererTest.php index 326ce98b4a..6417d61f41 100644 --- a/tests/suite/joomla/document/JDocumentRendererTest.php +++ b/tests/suite/joomla/document/JDocumentRendererTest.php @@ -27,36 +27,32 @@ class JDocumentRendererTest extends PHPUnit_Framework_TestCase */ protected function setUp() { - //$this->object = new JDocumentRenderer; - } - - /** - * Tears down the fixture, for example, closes a network connection. - * This method is called after a test is executed. - * - * @access protected - */ - protected function tearDown() - { + $doc = new JDocument; + $this->object = new JDocumentRenderer($doc); } /** + * Test JDocumentRenderer::render(). + * * Empty test because the base class does nothing + * + * @since 11.3 */ public function testRender() { - $doc = new JDocument; - $this->object = new JDocumentRenderer($doc); - $this->object->render('test'); + $this->assertThat( + $this->object->render('test'), + $this->equalTo(null) + ); } /** - * @todo Implement testGetContentType(). + * Test JDocumentRenderer::getContentType(). + * + * @since 11.3 */ public function testGetContentType() { - $doc = new JDocument; - $this->object = new JDocumentRenderer($doc); $this->assertThat( $this->object->getContentType(), $this->equalTo('text/html') diff --git a/tests/suite/joomla/document/error/JDocumentErrorTest.php b/tests/suite/joomla/document/error/JDocumentErrorTest.php new file mode 100644 index 0000000000..d02dbbf9d4 --- /dev/null +++ b/tests/suite/joomla/document/error/JDocumentErrorTest.php @@ -0,0 +1,81 @@ +object = new JDocumentError; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testSetError(). + */ + public function testSetError() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRender(). + */ + public function testRender() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement test_loadTemplate(). + */ + public function test_loadTemplate() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRenderBacktrace(). + */ + public function testRenderBacktrace() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> \ No newline at end of file diff --git a/tests/suite/joomla/document/feed/JFeedEnclosureTest.php b/tests/suite/joomla/document/feed/JFeedEnclosureTest.php new file mode 100644 index 0000000000..c978aab5b3 --- /dev/null +++ b/tests/suite/joomla/document/feed/JFeedEnclosureTest.php @@ -0,0 +1,48 @@ +object = new JFeedEnclosure; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Decide how to Implement. + */ + public function testDummy() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete('This test has not been implemented yet.'); + } +} + +?> diff --git a/tests/suite/joomla/document/feed/JFeedImageTest.php b/tests/suite/joomla/document/feed/JFeedImageTest.php new file mode 100644 index 0000000000..924f5a73b3 --- /dev/null +++ b/tests/suite/joomla/document/feed/JFeedImageTest.php @@ -0,0 +1,48 @@ +object = new JFeedImage; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Decide how to Implement. + */ + public function testDummy() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete('This test has not been implemented yet.'); + } +} + +?> diff --git a/tests/suite/joomla/document/feed/JFeedItemTest.php b/tests/suite/joomla/document/feed/JFeedItemTest.php new file mode 100644 index 0000000000..234d1b4652 --- /dev/null +++ b/tests/suite/joomla/document/feed/JFeedItemTest.php @@ -0,0 +1,50 @@ +object = new JFeedItem; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testSetEnclosure(). + */ + public function testSetEnclosure() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/document/html/JDocumentHTMLTest.php b/tests/suite/joomla/document/html/JDocumentHTMLTest.php new file mode 100644 index 0000000000..ccc71d651a --- /dev/null +++ b/tests/suite/joomla/document/html/JDocumentHTMLTest.php @@ -0,0 +1,160 @@ +object = new JDocumentHTML; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testGetHeadData(). + */ + public function testGetHeadData() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetHeadData(). + */ + public function testSetHeadData() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testMergeHeadData(). + */ + public function testMergeHeadData() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddHeadLink(). + */ + public function testAddHeadLink() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddFavicon(). + */ + public function testAddFavicon() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddCustomTag(). + */ + public function testAddCustomTag() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetBuffer(). + */ + public function testGetBuffer() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetBuffer(). + */ + public function testSetBuffer() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testParse(). + */ + public function testParse() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRender(). + */ + public function testRender() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCountModules(). + */ + public function testCountModules() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCountMenuChildren(). + */ + public function testCountMenuChildren() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/document/html/renderer/JDocumentRendererComponentTest.php b/tests/suite/joomla/document/html/renderer/JDocumentRendererComponentTest.php new file mode 100644 index 0000000000..d9cc979e01 --- /dev/null +++ b/tests/suite/joomla/document/html/renderer/JDocumentRendererComponentTest.php @@ -0,0 +1,50 @@ +object = new JDocumentRendererComponent; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testRender(). + */ + public function testRender() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/document/html/renderer/JDocumentRendererHeadTest.php b/tests/suite/joomla/document/html/renderer/JDocumentRendererHeadTest.php new file mode 100644 index 0000000000..eb4157ab07 --- /dev/null +++ b/tests/suite/joomla/document/html/renderer/JDocumentRendererHeadTest.php @@ -0,0 +1,60 @@ +object = new JDocumentRendererHead; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testRender(). + */ + public function testRender() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testFetchHead(). + */ + public function testFetchHead() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/document/html/renderer/JDocumentRendererMessageTest.php b/tests/suite/joomla/document/html/renderer/JDocumentRendererMessageTest.php new file mode 100644 index 0000000000..d628df93a7 --- /dev/null +++ b/tests/suite/joomla/document/html/renderer/JDocumentRendererMessageTest.php @@ -0,0 +1,50 @@ +object = new JDocumentRendererMessage; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testRender(). + */ + public function testRender() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/document/html/renderer/JDocumentRendererModuleTest.php b/tests/suite/joomla/document/html/renderer/JDocumentRendererModuleTest.php new file mode 100644 index 0000000000..42af13040f --- /dev/null +++ b/tests/suite/joomla/document/html/renderer/JDocumentRendererModuleTest.php @@ -0,0 +1,50 @@ +object = new JDocumentRendererModule; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testRender(). + */ + public function testRender() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/document/html/renderer/JDocumentRendererModulesTest.php b/tests/suite/joomla/document/html/renderer/JDocumentRendererModulesTest.php new file mode 100644 index 0000000000..bf69180645 --- /dev/null +++ b/tests/suite/joomla/document/html/renderer/JDocumentRendererModulesTest.php @@ -0,0 +1,50 @@ +object = new JDocumentRendererModules; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testRender(). + */ + public function testRender() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/document/opensearch/JOpenSearchImageTest.php b/tests/suite/joomla/document/opensearch/JOpenSearchImageTest.php new file mode 100644 index 0000000000..260e41bc9f --- /dev/null +++ b/tests/suite/joomla/document/opensearch/JOpenSearchImageTest.php @@ -0,0 +1,48 @@ +object = new JOpenSearchImage; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Decide how to Implement. + */ + public function testDummy() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete('This test has not been implemented yet.'); + } +} + +?> diff --git a/tests/suite/joomla/document/opensearch/JOpenSearchUrlTest.php b/tests/suite/joomla/document/opensearch/JOpenSearchUrlTest.php new file mode 100644 index 0000000000..5136316389 --- /dev/null +++ b/tests/suite/joomla/document/opensearch/JOpenSearchUrlTest.php @@ -0,0 +1,48 @@ +object = new JOpenSearchUrl; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Decide how to Implement. + */ + public function testDummy() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete('This test has not been implemented yet.'); + } +} + +?> diff --git a/tests/suite/joomla/environment/JURITest.php b/tests/suite/joomla/environment/JURITest.php index 1ba496017d..607ec304bc 100644 --- a/tests/suite/joomla/environment/JURITest.php +++ b/tests/suite/joomla/environment/JURITest.php @@ -153,7 +153,7 @@ public function testCurrent() */ public function testParse() { - $this->object->parse('http://someuser:somepass@www.example.com:80/path/file.html?var=value#fragment'); + $this->object->parse('http://someuser:somepass@www.example.com:80/path/file.html?var=value&test=true#fragment'); $this->assertThat( $this->object->getHost(), @@ -308,6 +308,20 @@ public function testSetQuery() $this->object->getQuery(), $this->equalTo('somevar=somevalue') ); + + $this->object->setQuery('somevar=somevalue&test=true'); + + $this->assertThat( + $this->object->getQuery(), + $this->equalTo('somevar=somevalue&test=true') + ); + + $this->object->setQuery(array('somevar' => 'somevalue', 'test' => 'true')); + + $this->assertThat( + $this->object->getQuery(), + $this->equalTo('somevar=somevalue&test=true') + ); } /** @@ -325,6 +339,11 @@ public function testGetQuery() $this->object->getQuery(), $this->equalTo('var=value') ); + + $this->assertThat( + $this->object->getQuery(true), + $this->equalTo(array('var' => 'value')) + ); } /** diff --git a/tests/suite/joomla/error/JErrorTest.php b/tests/suite/joomla/error/JErrorTest.php new file mode 100644 index 0000000000..05d222b697 --- /dev/null +++ b/tests/suite/joomla/error/JErrorTest.php @@ -0,0 +1,290 @@ +object = new JError; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testIsError(). + */ + public function testIsError() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetError(). + */ + public function testGetError() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetErrors(). + */ + public function testGetErrors() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddToStack(). + */ + public function testAddToStack() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRaise(). + */ + public function testRaise() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testThrowError(). + */ + public function testThrowError() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRaiseError(). + */ + public function testRaiseError() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRaiseWarning(). + */ + public function testRaiseWarning() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRaiseNotice(). + */ + public function testRaiseNotice() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetErrorHandling(). + */ + public function testGetErrorHandling() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetErrorHandling(). + */ + public function testSetErrorHandling() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAttachHandler(). + */ + public function testAttachHandler() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDetachHandler(). + */ + public function testDetachHandler() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRegisterErrorLevel(). + */ + public function testRegisterErrorLevel() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testTranslateErrorLevel(). + */ + public function testTranslateErrorLevel() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHandleIgnore(). + */ + public function testHandleIgnore() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHandleEcho(). + */ + public function testHandleEcho() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHandleVerbose(). + */ + public function testHandleVerbose() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHandleDie(). + */ + public function testHandleDie() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHandleMessage(). + */ + public function testHandleMessage() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHandleLog(). + */ + public function testHandleLog() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHandleCallback(). + */ + public function testHandleCallback() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCustomErrorPage(). + */ + public function testCustomErrorPage() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCustomErrorHandler(). + */ + public function testCustomErrorHandler() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRenderBacktrace(). + */ + public function testRenderBacktrace() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/error/JExceptionTest.php b/tests/suite/joomla/error/JExceptionTest.php new file mode 100644 index 0000000000..af406ad454 --- /dev/null +++ b/tests/suite/joomla/error/JExceptionTest.php @@ -0,0 +1,130 @@ +object = new JException; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement test__toString(). + */ + public function test__toString() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testToString(). + */ + public function testToString() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGet(). + */ + public function testGet() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetProperties(). + */ + public function testGetProperties() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetError(). + */ + public function testGetError() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetErrors(). + */ + public function testGetErrors() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSet(). + */ + public function testSet() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetProperties(). + */ + public function testSetProperties() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetError(). + */ + public function testSetError() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/error/JProfilerTest.php b/tests/suite/joomla/error/JProfilerTest.php new file mode 100644 index 0000000000..fd2be4cdaf --- /dev/null +++ b/tests/suite/joomla/error/JProfilerTest.php @@ -0,0 +1,90 @@ +object = new JProfiler; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testGetInstance(). + */ + public function testGetInstance() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testMark(). + */ + public function testMark() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetmicrotime(). + */ + public function testGetmicrotime() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetMemory(). + */ + public function testGetMemory() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetBuffer(). + */ + public function testGetBuffer() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/event/JDispatcherTest.php b/tests/suite/joomla/event/JDispatcherTest.php index 764eebb801..a29366576b 100644 --- a/tests/suite/joomla/event/JDispatcherTest.php +++ b/tests/suite/joomla/event/JDispatcherTest.php @@ -235,6 +235,14 @@ public function testTrigger() ) ) ); + + //We check a situation where the observer is broken. Joomla should handle this gracefully + $this->object->_observers = array(); + + $this->assertThat( + $this->object->trigger('onTestEvent'), + $this->equalTo(array()) + ); } /** @@ -293,7 +301,27 @@ public function testAttach() $this->object->_observers, $this->equalTo($observers) ); + + //Lets test that an observer is not attached twice + $observer = array('handler' => 'JEventMockFunction', 'event' => 'onTestEvent'); + $observers = array($observer); + + $this->object->attach($observer); + + $this->assertThat( + $this->object->_methods, + $this->equalTo( + array( + 'ontestevent' => array(0) + ) + ) + ); + $this->assertThat( + $this->object->_observers, + $this->equalTo($observers) + ); + //Lets test an invalid object $observer = new stdClass(); @@ -333,6 +361,26 @@ public function testAttach() $this->object->_observers, $this->equalTo($observers) ); + + //Lets test that an object observer is not attached twice + $observer = new JEventInspector($this->object); + + $this->object->attach($observer); + + $this->assertThat( + $this->object->_methods, + $this->equalTo( + array( + '__get' => array(1), + 'ontestevent' => array(0,1) + ) + ) + ); + + $this->assertThat( + $this->object->_observers, + $this->equalTo($observers) + ); } /** diff --git a/tests/suite/joomla/filesystem/JArchiveTest.php b/tests/suite/joomla/filesystem/JArchiveTest.php new file mode 100644 index 0000000000..f1bdb6c70d --- /dev/null +++ b/tests/suite/joomla/filesystem/JArchiveTest.php @@ -0,0 +1,61 @@ +object = new JArchive; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testExtract(). + */ + public function testExtract() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetAdapter(). + */ + public function testGetAdapter() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> \ No newline at end of file diff --git a/tests/suite/joomla/filesystem/JFileTest.php b/tests/suite/joomla/filesystem/JFileTest.php new file mode 100644 index 0000000000..426ed1167a --- /dev/null +++ b/tests/suite/joomla/filesystem/JFileTest.php @@ -0,0 +1,150 @@ +object = new JFile; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testGetExt(). + */ + public function testGetExt() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStripExt(). + */ + public function testStripExt() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testMakeSafe(). + */ + public function testMakeSafe() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCopy(). + */ + public function testCopy() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDelete(). + */ + public function testDelete() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testMove(). + */ + public function testMove() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRead(). + */ + public function testRead() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testWrite(). + */ + public function testWrite() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testUpload(). + */ + public function testUpload() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testExists(). + */ + public function testExists() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetName(). + */ + public function testGetName() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/filesystem/JFilesystemHelperTest.php b/tests/suite/joomla/filesystem/JFilesystemHelperTest.php new file mode 100644 index 0000000000..7dda37b5b5 --- /dev/null +++ b/tests/suite/joomla/filesystem/JFilesystemHelperTest.php @@ -0,0 +1,121 @@ +object = new JFilesystemHelper; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testRemotefsize(). + */ + public function testRemotefsize() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testFtpChmod(). + */ + public function testFtpChmod() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetWriteModes(). + */ + public function testGetWriteModes() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetSupported(). + */ + public function testGetSupported() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetTransports(). + */ + public function testGetTransports() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetFilters(). + */ + public function testGetFilters() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetJStreams(). + */ + public function testGetJStreams() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testIsJoomlaStream(). + */ + public function testIsJoomlaStream() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> \ No newline at end of file diff --git a/tests/suite/joomla/filesystem/JPathTest.php b/tests/suite/joomla/filesystem/JPathTest.php new file mode 100644 index 0000000000..99d2605ad7 --- /dev/null +++ b/tests/suite/joomla/filesystem/JPathTest.php @@ -0,0 +1,110 @@ +object = new JPath; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testCanChmod(). + */ + public function testCanChmod() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetPermissions(). + */ + public function testSetPermissions() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetPermissions(). + */ + public function testGetPermissions() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCheck(). + */ + public function testCheck() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClean(). + */ + public function testClean() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testIsOwner(). + */ + public function testIsOwner() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testFind(). + */ + public function testFind() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/filesystem/JStreamTest.php b/tests/suite/joomla/filesystem/JStreamTest.php new file mode 100644 index 0000000000..98ef2c2c65 --- /dev/null +++ b/tests/suite/joomla/filesystem/JStreamTest.php @@ -0,0 +1,310 @@ +object = new JStream; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement test__destruct(). + */ + public function test__destruct() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testOpen(). + */ + public function testOpen() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClose(). + */ + public function testClose() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testEof(). + */ + public function testEof() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testFilesize(). + */ + public function testFilesize() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGets(). + */ + public function testGets() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRead(). + */ + public function testRead() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSeek(). + */ + public function testSeek() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testTell(). + */ + public function testTell() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testWrite(). + */ + public function testWrite() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testChmod(). + */ + public function testChmod() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGet_meta_data(). + */ + public function testGet_meta_data() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement test_buildContext(). + */ + public function test_buildContext() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetContextOptions(). + */ + public function testSetContextOptions() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddContextEntry(). + */ + public function testAddContextEntry() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDeleteContextEntry(). + */ + public function testDeleteContextEntry() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testApplyContextToStream(). + */ + public function testApplyContextToStream() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAppendFilter(). + */ + public function testAppendFilter() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testPrependFilter(). + */ + public function testPrependFilter() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRemoveFilter(). + */ + public function testRemoveFilter() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCopy(). + */ + public function testCopy() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testMove(). + */ + public function testMove() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDelete(). + */ + public function testDelete() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testUpload(). + */ + public function testUpload() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testWriteFile(). + */ + public function testWriteFile() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement test_getFilename(). + */ + public function test_getFilename() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetFileHandle(). + */ + public function testGetFileHandle() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/filesystem/archive/JArchiveBzip2Test.php b/tests/suite/joomla/filesystem/archive/JArchiveBzip2Test.php new file mode 100644 index 0000000000..7297692d4a --- /dev/null +++ b/tests/suite/joomla/filesystem/archive/JArchiveBzip2Test.php @@ -0,0 +1,50 @@ +object = new JArchiveBzip2; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testExtract(). + */ + public function testExtract() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/filesystem/archive/JArchiveGzipTest.php b/tests/suite/joomla/filesystem/archive/JArchiveGzipTest.php new file mode 100644 index 0000000000..75999fa9b3 --- /dev/null +++ b/tests/suite/joomla/filesystem/archive/JArchiveGzipTest.php @@ -0,0 +1,60 @@ +object = new JArchiveGzip; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testExtract(). + */ + public function testExtract() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement test_getFilePosition(). + */ + public function test_getFilePosition() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/filesystem/archive/JArchiveTarTest.php b/tests/suite/joomla/filesystem/archive/JArchiveTarTest.php new file mode 100644 index 0000000000..5501e7b578 --- /dev/null +++ b/tests/suite/joomla/filesystem/archive/JArchiveTarTest.php @@ -0,0 +1,50 @@ +object = new JArchiveTar; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testExtract(). + */ + public function testExtract() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/filesystem/archive/JArchiveZipTest.php b/tests/suite/joomla/filesystem/archive/JArchiveZipTest.php new file mode 100644 index 0000000000..aada254c29 --- /dev/null +++ b/tests/suite/joomla/filesystem/archive/JArchiveZipTest.php @@ -0,0 +1,80 @@ +object = new JArchiveZip; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testCreate(). + */ + public function testCreate() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testExtract(). + */ + public function testExtract() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHasNativeSupport(). + */ + public function testHasNativeSupport() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCheckZipData(). + */ + public function testCheckZipData() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/filesystem/streams/JStreamStringTest.php b/tests/suite/joomla/filesystem/streams/JStreamStringTest.php new file mode 100644 index 0000000000..a632269441 --- /dev/null +++ b/tests/suite/joomla/filesystem/streams/JStreamStringTest.php @@ -0,0 +1,130 @@ +object = new JStreamString; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testStream_open(). + */ + public function testStream_open() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStream_stat(). + */ + public function testStream_stat() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testUrl_stat(). + */ + public function testUrl_stat() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStream_read(). + */ + public function testStream_read() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStream_write(). + */ + public function testStream_write() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStream_tell(). + */ + public function testStream_tell() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStream_eof(). + */ + public function testStream_eof() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStream_seek(). + */ + public function testStream_seek() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testStream_flush(). + */ + public function testStream_flush() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/filesystem/support/JStringControllerTest.php b/tests/suite/joomla/filesystem/support/JStringControllerTest.php new file mode 100644 index 0000000000..b5b7d307d8 --- /dev/null +++ b/tests/suite/joomla/filesystem/support/JStringControllerTest.php @@ -0,0 +1,70 @@ +object = new JStringController; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement test_getArray(). + */ + public function test_getArray() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCreateRef(). + */ + public function testCreateRef() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetRef(). + */ + public function testGetRef() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/filter/index.html b/tests/suite/joomla/filter/index.html deleted file mode 100644 index 6bfc7988e1..0000000000 --- a/tests/suite/joomla/filter/index.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/tests/suite/joomla/form/_testfields/index.html b/tests/suite/joomla/form/_testfields/index.html deleted file mode 100644 index 6bfc7988e1..0000000000 --- a/tests/suite/joomla/form/_testfields/index.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/tests/suite/joomla/form/_testrules/index.html b/tests/suite/joomla/form/_testrules/index.html deleted file mode 100644 index 6bfc7988e1..0000000000 --- a/tests/suite/joomla/form/_testrules/index.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/tests/suite/joomla/form/fields/index.html b/tests/suite/joomla/form/fields/index.html deleted file mode 100644 index 6bfc7988e1..0000000000 --- a/tests/suite/joomla/form/fields/index.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/tests/suite/joomla/form/fields/inspectors/index.html b/tests/suite/joomla/form/fields/inspectors/index.html deleted file mode 100644 index 6bfc7988e1..0000000000 --- a/tests/suite/joomla/form/fields/inspectors/index.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/tests/suite/joomla/form/index.html b/tests/suite/joomla/form/index.html deleted file mode 100644 index 6bfc7988e1..0000000000 --- a/tests/suite/joomla/form/index.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/tests/suite/joomla/form/language/en-GB/index.html b/tests/suite/joomla/form/language/en-GB/index.html deleted file mode 100644 index 6bfc7988e1..0000000000 --- a/tests/suite/joomla/form/language/en-GB/index.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/tests/suite/joomla/form/language/index.html b/tests/suite/joomla/form/language/index.html deleted file mode 100644 index 6bfc7988e1..0000000000 --- a/tests/suite/joomla/form/language/index.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/tests/suite/joomla/form/rules/index.html b/tests/suite/joomla/form/rules/index.html deleted file mode 100644 index 6bfc7988e1..0000000000 --- a/tests/suite/joomla/form/rules/index.html +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/tests/suite/joomla/log/LogExceptionTest.php b/tests/suite/joomla/log/LogExceptionTest.php new file mode 100644 index 0000000000..9196458c77 --- /dev/null +++ b/tests/suite/joomla/log/LogExceptionTest.php @@ -0,0 +1,48 @@ +object = new LogException; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Decide how to Implement. + */ + public function testDummy() + { + // Remove the following lines when you implement this test. + $this->markTestIncomplete('This test has not been implemented yet.'); + } +} + +?> diff --git a/tests/suite/joomla/mail/JMailHelperTest.php b/tests/suite/joomla/mail/JMailHelperTest.php new file mode 100644 index 0000000000..87504b4a3c --- /dev/null +++ b/tests/suite/joomla/mail/JMailHelperTest.php @@ -0,0 +1,100 @@ +object = new JMailHelper; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testCleanLine(). + */ + public function testCleanLine() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCleanText(). + */ + public function testCleanText() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCleanBody(). + */ + public function testCleanBody() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCleanSubject(). + */ + public function testCleanSubject() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testCleanAddress(). + */ + public function testCleanAddress() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testIsEmailAddress(). + */ + public function testIsEmailAddress() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/mail/JMailTest.php b/tests/suite/joomla/mail/JMailTest.php new file mode 100644 index 0000000000..8d42e6091e --- /dev/null +++ b/tests/suite/joomla/mail/JMailTest.php @@ -0,0 +1,181 @@ +object = new JMail; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testGetInstance(). + */ + public function testGetInstance() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSend(). + */ + public function testSend() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetSender(). + */ + public function testSetSender() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetSubject(). + */ + public function testSetSubject() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSetBody(). + */ + public function testSetBody() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddRecipient(). + */ + public function testAddRecipient() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddCC(). + */ + public function testAddCC() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddBCC(). + */ + public function testAddBCC() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddAttachment(). + */ + public function testAddAttachment() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testAddReplyTo(). + */ + public function testAddReplyTo() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testUseSendmail(). + */ + public function testUseSendmail() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testUseSMTP(). + */ + public function testUseSMTP() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSendMail(). + */ + public function testSendMail() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSendAdminMail(). + */ + public function testSendAdminMail() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> \ No newline at end of file diff --git a/tests/suite/joomla/plugin/JPluginHelperTest.php b/tests/suite/joomla/plugin/JPluginHelperTest.php new file mode 100644 index 0000000000..eb8e08dd56 --- /dev/null +++ b/tests/suite/joomla/plugin/JPluginHelperTest.php @@ -0,0 +1,70 @@ +object = new JPluginHelper; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testGetPlugin(). + */ + public function testGetPlugin() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testIsEnabled(). + */ + public function testIsEnabled() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testImportPlugin(). + */ + public function testImportPlugin() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/plugin/JPluginTest.php b/tests/suite/joomla/plugin/JPluginTest.php new file mode 100644 index 0000000000..bee71914e1 --- /dev/null +++ b/tests/suite/joomla/plugin/JPluginTest.php @@ -0,0 +1,50 @@ +object = new JPlugin; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testLoadLanguage(). + */ + public function testLoadLanguage() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/session/JSessionStorageTest.php b/tests/suite/joomla/session/JSessionStorageTest.php new file mode 100644 index 0000000000..1e9a8621c8 --- /dev/null +++ b/tests/suite/joomla/session/JSessionStorageTest.php @@ -0,0 +1,130 @@ +object = new JSessionStorage; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testGetInstance(). + */ + public function testGetInstance() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRegister(). + */ + public function testRegister() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testOpen(). + */ + public function testOpen() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClose(). + */ + public function testClose() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRead(). + */ + public function testRead() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testWrite(). + */ + public function testWrite() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDestroy(). + */ + public function testDestroy() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGc(). + */ + public function testGc() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testTest(). + */ + public function testTest() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/session/JSessionTest.php b/tests/suite/joomla/session/JSessionTest.php new file mode 100644 index 0000000000..2eee5a042d --- /dev/null +++ b/tests/suite/joomla/session/JSessionTest.php @@ -0,0 +1,230 @@ +object = new JSession; + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement test__destruct(). + */ + public function test__destruct() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetInstance(). + */ + public function testGetInstance() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetState(). + */ + public function testGetState() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetExpire(). + */ + public function testGetExpire() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetToken(). + */ + public function testGetToken() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHasToken(). + */ + public function testHasToken() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetFormToken(). + */ + public function testGetFormToken() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetName(). + */ + public function testGetName() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetId(). + */ + public function testGetId() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGetStores(). + */ + public function testGetStores() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testIsNew(). + */ + public function testIsNew() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGet(). + */ + public function testGet() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testSet(). + */ + public function testSet() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testHas(). + */ + public function testHas() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClear(). + */ + public function testClear() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDestroy(). + */ + public function testDestroy() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRestart(). + */ + public function testRestart() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testFork(). + */ + public function testFork() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClose(). + */ + public function testClose() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/session/storage/JSessionStorageApcTest.php b/tests/suite/joomla/session/storage/JSessionStorageApcTest.php new file mode 100644 index 0000000000..53dd054c26 --- /dev/null +++ b/tests/suite/joomla/session/storage/JSessionStorageApcTest.php @@ -0,0 +1,111 @@ +object = JSessionStorage::getInstance('APC'); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testOpen(). + */ + public function testOpen() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClose(). + */ + public function testClose() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRead(). + */ + public function testRead() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testWrite(). + */ + public function testWrite() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDestroy(). + */ + public function testDestroy() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGc(). + */ + public function testGc() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testTest(). + */ + public function testTest() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/session/storage/JSessionStorageDatabaseTest.php b/tests/suite/joomla/session/storage/JSessionStorageDatabaseTest.php new file mode 100644 index 0000000000..5986509e76 --- /dev/null +++ b/tests/suite/joomla/session/storage/JSessionStorageDatabaseTest.php @@ -0,0 +1,101 @@ +object = JSessionStorage::getInstance('Database'); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testOpen(). + */ + public function testOpen() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClose(). + */ + public function testClose() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRead(). + */ + public function testRead() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testWrite(). + */ + public function testWrite() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDestroy(). + */ + public function testDestroy() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGc(). + */ + public function testGc() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/session/storage/JSessionStorageEacceleratorTest.php b/tests/suite/joomla/session/storage/JSessionStorageEacceleratorTest.php new file mode 100644 index 0000000000..b8337b6780 --- /dev/null +++ b/tests/suite/joomla/session/storage/JSessionStorageEacceleratorTest.php @@ -0,0 +1,111 @@ +object = JSessionStorage::getInstance('Eaccelerator'); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testOpen(). + */ + public function testOpen() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClose(). + */ + public function testClose() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRead(). + */ + public function testRead() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testWrite(). + */ + public function testWrite() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDestroy(). + */ + public function testDestroy() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGc(). + */ + public function testGc() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testTest(). + */ + public function testTest() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/session/storage/JSessionStorageMemcacheTest.php b/tests/suite/joomla/session/storage/JSessionStorageMemcacheTest.php new file mode 100644 index 0000000000..2043375805 --- /dev/null +++ b/tests/suite/joomla/session/storage/JSessionStorageMemcacheTest.php @@ -0,0 +1,111 @@ +object = JSessionStorage::getInstance('Memcache'); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testOpen(). + */ + public function testOpen() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClose(). + */ + public function testClose() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRead(). + */ + public function testRead() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testWrite(). + */ + public function testWrite() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDestroy(). + */ + public function testDestroy() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGc(). + */ + public function testGc() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testTest(). + */ + public function testTest() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/session/storage/JSessionStorageNoneTest.php b/tests/suite/joomla/session/storage/JSessionStorageNoneTest.php new file mode 100644 index 0000000000..6875ae262d --- /dev/null +++ b/tests/suite/joomla/session/storage/JSessionStorageNoneTest.php @@ -0,0 +1,105 @@ +object = JSessionStorage::getInstance('None'); + } + + /** + * Test JSessionStorageNone::Register(). + */ + public function testRegister() { + $this->assertThat( + $this->object->register(), + $this->equalTo(null) + ); + } + + /** + * Test JSessionStorageNone::open(). + */ + public function testOpen() { + $this->assertTrue( + $this->object->open(null, null) + ); + } + + /** + * Test JSessionStorageNone::close(). + */ + public function testClose() { + $this->assertTrue( + $this->object->close() + ); + } + + /** + * Test JSessionStorageNone::read(). + */ + public function testRead() { + $this->assertTrue( + $this->object->read(null) + ); + } + + /** + * Test JSessionStorageNone::write(). + */ + public function testWrite() { + $this->assertTrue( + $this->object->write(null, null) + ); + } + + /** + * Test JSessionStorageNone::destroy(). + */ + public function testDestroy() { + $this->assertTrue( + $this->object->destroy(null) + ); + } + + /** + * Test JSessionStorageNone::gc(). + */ + public function testGc() { + $this->assertTrue( + $this->object->gc() + ); + } + + /** + * Test JSessionStorageNone::test(). + */ + public function testTest() { + $this->assertTrue( + JSessionStorageNone::test() + ); + } +} + +?> diff --git a/tests/suite/joomla/session/storage/JSessionStorageWincacheTest.php b/tests/suite/joomla/session/storage/JSessionStorageWincacheTest.php new file mode 100644 index 0000000000..1d3e4766e1 --- /dev/null +++ b/tests/suite/joomla/session/storage/JSessionStorageWincacheTest.php @@ -0,0 +1,111 @@ +object = JSessionStorage::getInstance('Wincache'); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testOpen(). + */ + public function testOpen() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClose(). + */ + public function testClose() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRead(). + */ + public function testRead() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testWrite(). + */ + public function testWrite() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDestroy(). + */ + public function testDestroy() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGc(). + */ + public function testGc() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testTest(). + */ + public function testTest() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/session/storage/JSessionStorageXcacheTest.php b/tests/suite/joomla/session/storage/JSessionStorageXcacheTest.php new file mode 100644 index 0000000000..bc360879e7 --- /dev/null +++ b/tests/suite/joomla/session/storage/JSessionStorageXcacheTest.php @@ -0,0 +1,111 @@ +object = JSessionStorage::getInstance('Xcache'); + } + + /** + * Tears down the fixture, for example, closes a network connection. + * This method is called after a test is executed. + */ + protected function tearDown() { + + } + + /** + * @todo Implement testOpen(). + */ + public function testOpen() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testClose(). + */ + public function testClose() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testRead(). + */ + public function testRead() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testWrite(). + */ + public function testWrite() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testDestroy(). + */ + public function testDestroy() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testGc(). + */ + public function testGc() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + + /** + * @todo Implement testTest(). + */ + public function testTest() { + // Remove the following lines when you implement this test. + $this->markTestIncomplete( + 'This test has not been implemented yet.' + ); + } + +} + +?> diff --git a/tests/suite/joomla/string/TestHelpers/JString-helper-dataset.php b/tests/suite/joomla/string/TestHelpers/JString-helper-dataset.php index 9a67490f38..96f07feb70 100644 --- a/tests/suite/joomla/string/TestHelpers/JString-helper-dataset.php +++ b/tests/suite/joomla/string/TestHelpers/JString-helper-dataset.php @@ -104,7 +104,7 @@ class JStringTest_DataSet array('Pig', 'cow', 'the pig jumped', false, 'the cow jumped'), array('Pig', 'cow', 'the pig jumped', true, 'the cow jumped'), array('Pig', 'cow', 'the pig jumped over the cow', true, 'the cow jumped over the cow'), - array(array('PIG', 'JUMPED'), array('cow', 'hopped'), true, 'the pig jumped over the pig', 'the cow hopped over the cow'), + array(array('PIG', 'JUMPED'), array('cow', 'hopped'), 'the pig jumped over the pig', true, 'the cow hopped over the cow'), array('шил', 'биш', 'Би шил идэй чадна', true, 'Би биш идэй чадна'), array('/', ':', '/test/slashes/', true, ':test:slashes:'), );