|
From: <al...@us...> - 2013-06-18 19:04:38
|
Revision: 11715
http://sourceforge.net/p/xoops/svn/11715
Author: alain91
Date: 2013-06-18 19:04:33 +0000 (Tue, 18 Jun 2013)
Log Message:
-----------
Modified Paths:
--------------
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/kernel/BlockTest.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/kernel/SessionHandlerTest.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/phpunit.xml
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/xoops_lib/XoopsTest.php
Added Paths:
-----------
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/Class.tarTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/Class.zipfileTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/CommentrendererTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/RegistryTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/SnoopyTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/TardownloaderTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/XoopslocalTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/XoopsmailerTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/ZipdownloaderTest_.php
Removed Paths:
-------------
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/Class.tarTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/Class.zipfileTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/CommentrendererTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/RegistryTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/SnoopyTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/TardownloaderTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/XoopslocalTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/XoopsmailerTest_.php
XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/ZipdownloaderTest_.php
Deleted: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/Class.tarTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/Class.tarTest_.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/Class.tarTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,90 +0,0 @@
-<?php
-require_once('../init.php');
-//require_once(XOOPS_ROOT_PATH.'/class/class.tar.php');
-
-class TestOfTar extends UnitTestCase
-{
- protected $myclass='Tar';
-
- public function SetUp() {
- }
-
- public function test_100() {
- $tar = new $this->myclass();
- //$tar->openTAR();
- $this->assertEqual(true, false);
- }
-
- public function test_120() {
- $tar = new $this->myclass();
- //$tar->appendTAR();
- $this->assertEqual(true, false);
- }
-
- public function test_140() {
- $tar = new $this->myclass();
- //$tar->getFile($filename);
- $this->assertEqual(true, false);
- }
-
- public function test_160() {
- $tar = new $this->myclass();
- //$tar->getDirectory($dirname);
- $this->assertEqual(true, false);
- }
-
- public function test_180() {
- $tar = new $this->myclass();
- //$tar->containsFile($filename);
- $this->assertEqual(true, false);
- }
-
- public function test_200() {
- $tar = new $this->myclass();
- //$tar->containsDirectory($dirname);
- $this->assertEqual(true, false);
- }
-
- public function test_220() {
- $tar = new $this->myclass();
- //$tar->addDirectory($dirname);
- $this->assertEqual(true, false);
- }
-
- public function test_240() {
- $tar = new $this->myclass();
- //$tar->addFile($filename,$binary);
- $this->assertEqual(true, false);
- }
-
- public function test_260() {
- $tar = new $this->myclass();
- //$tar->removeFile($filename);
- $this->assertEqual(true, false);
- }
-
- public function test_280() {
- $tar = new $this->myclass();
- //$tar->removeDirectory($dirname);
- $this->assertEqual(true, false);
- }
-
- public function test_300() {
- $tar = new $this->myclass();
- //$tar->saveTar();
- $this->assertEqual(true, false);
- }
-
- public function test_320() {
- $tar = new $this->myclass();
- //$tar->toTar();
- $this->assertEqual(true, false);
- }
-
- public function test_340() {
- $tar = new $this->myclass();
- //$tar->toTarOutput();
- $this->assertEqual(true, false);
- }
-
-}
Deleted: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/Class.zipfileTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/Class.zipfileTest_.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/Class.zipfileTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,15 +0,0 @@
-<?php
-require_once('../init.php');
-//require_once(XOOPS_ROOT_PATH.'/class/class.zipfile.php');
-
-class TestOfZipfile extends UnitTestCase
-{
- protected $myclass='zipfile';
-
- public function SetUp() {
- }
-
- public function test_100() {
- $this->assertEqual(true, false); //failure by default
- }
-}
Deleted: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/CommentrendererTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/CommentrendererTest_.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/CommentrendererTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,46 +0,0 @@
-<?php
-require_once(dirname(__FILE__).'/../init.php');
-
-class CommentrenderTest extends MY_UnitTestCase
-{
- protected $myclass = 'XoopsCommentRenderer';
- protected $tpl = null;
-
- public function SetUp() {
- $this->tpl = new XoopsTpl();
- $xoops = Xoops::getInstance();
- $xoops->loadLanguage('comment');
- //include_once $xoops->path('include/comment_constants.php');
- }
-
- public function test_100() {
- $renderer = new $this->myclass($this->tpl);
- $this->assertInstanceOf($this->myclass, $renderer);
- }
-
- public function test_120() {
- $renderer = XoopsCommentRenderer::Instance($this->tpl);
- $this->assertInstanceOf($this->myclass, $renderer);
- }
-
- public function test_140() {
- $renderer = XoopsCommentRenderer::getInstance($this->tpl);
- $this->assertInstanceOf($this->myclass, $renderer);
- }
-
- public function test_160() {
- $renderer = XoopsCommentRenderer::getInstance($this->tpl);
- $this->assertInstanceOf($this->myclass, $renderer);
-
- $comment1 = new XoopsComment();
- $comment1->setVar('com_status',XOOPS_COMMENT_ACTIVE);
- $comment2 = new XoopsComment();
- $comment2->setVar('com_status',XOOPS_COMMENT_ACTIVE);
-
- $tmp = array($comment1, $comment2);
- $renderer->setComments($tmp);
-
- $renderer->renderFlatView();
- }
-
-}
Deleted: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/RegistryTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/RegistryTest_.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/RegistryTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,32 +0,0 @@
-<?php
-require_once('../init.php');
-//require_once(XOOPS_ROOT_PATH.'/class/registry.php');
-
-class TestOfRegistry extends UnitTestCase
-{
- protected $myclass = 'XoopsRegistry';
-
- public function SetUp() {
- }
-
- public function tearDown() {
- XoopsRegistry::_unsetInstance();
- }
-
- public function test_100() {
- $value = XoopsRegistry::getInstance();
- $this->assertIsA($value, $this->myclass);
- $value2 = XoopsRegistry::getInstance();
- $this->assertIdentical($value, $value2);
- }
-
- public function test_120() {
- $registry = new $this->myclass(); // Dont use getInstance there
- $this->assertIsA($registry, $this->myclass);
- XoopsRegistry::setInstance($registry);
- $this->assertIdentical($registry::$_registry, $registry);
- $this->expectError();
- XoopsRegistry::setInstance($registry);
- }
-
-}
Deleted: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/SnoopyTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/SnoopyTest_.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/SnoopyTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,14 +0,0 @@
-<?php
-require_once('../init.php');
-//require_once(XOOPS_ROOT_PATH.'/class/snoopy.php');
-
-class TestOfSnoopy extends UnitTestCase
-{
-
- public function SetUp() {
- }
-
- public function test_100() {
- $this->assertEqual(true, false);
- }
-}
Deleted: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/TardownloaderTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/TardownloaderTest_.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/TardownloaderTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,14 +0,0 @@
-<?php
-require_once('../init.php');
-//require_once(XOOPS_ROOT_PATH.'/class/tardownloader.php');
-
-class TestOfTardownloader extends UnitTestCase
-{
-
- public function SetUp() {
- }
-
- public function test_100() {
- $this->assertEqual(true, false);
- }
-}
Deleted: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/XoopslocalTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/XoopslocalTest_.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/XoopslocalTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,14 +0,0 @@
-<?php
-require_once('../init.php');
-//require_once(XOOPS_ROOT_PATH.'/class/xoopslocal.php');
-
-class TestOfXoopslocal extends UnitTestCase
-{
-
- public function SetUp() {
- }
-
- public function test_100() {
- $this->assertEqual(true, false);
- }
-}
Deleted: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/XoopsmailerTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/XoopsmailerTest_.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/XoopsmailerTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,14 +0,0 @@
-<?php
-require_once('../init.php');
-//require_once(XOOPS_ROOT_PATH.'/class/xoopsmailer.php');
-
-class TestOfXoopsmailer extends UnitTestCase
-{
-
- public function SetUp() {
- }
-
- public function test_100() {
- $this->assertEqual(true, false);
- }
-}
Deleted: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/ZipdownloaderTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/ZipdownloaderTest_.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/ZipdownloaderTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,14 +0,0 @@
-<?php
-require_once('../init.php');
-//require_once(XOOPS_ROOT_PATH.'/class/zipdownloader.php');
-
-class TestOfZipdownloader extends UnitTestCase
-{
-
- public function SetUp() {
- }
-
- public function test_100() {
- $this->assertEqual(true, false);
- }
-}
Added: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/Class.tarTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/Class.tarTest_.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/Class.tarTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -0,0 +1,90 @@
+<?php
+require_once('../init.php');
+//require_once(XOOPS_ROOT_PATH.'/class/class.tar.php');
+
+class TestOfTar extends UnitTestCase
+{
+ protected $myclass='Tar';
+
+ public function SetUp() {
+ }
+
+ public function test_100() {
+ $tar = new $this->myclass();
+ //$tar->openTAR();
+ $this->assertEqual(true, false);
+ }
+
+ public function test_120() {
+ $tar = new $this->myclass();
+ //$tar->appendTAR();
+ $this->assertEqual(true, false);
+ }
+
+ public function test_140() {
+ $tar = new $this->myclass();
+ //$tar->getFile($filename);
+ $this->assertEqual(true, false);
+ }
+
+ public function test_160() {
+ $tar = new $this->myclass();
+ //$tar->getDirectory($dirname);
+ $this->assertEqual(true, false);
+ }
+
+ public function test_180() {
+ $tar = new $this->myclass();
+ //$tar->containsFile($filename);
+ $this->assertEqual(true, false);
+ }
+
+ public function test_200() {
+ $tar = new $this->myclass();
+ //$tar->containsDirectory($dirname);
+ $this->assertEqual(true, false);
+ }
+
+ public function test_220() {
+ $tar = new $this->myclass();
+ //$tar->addDirectory($dirname);
+ $this->assertEqual(true, false);
+ }
+
+ public function test_240() {
+ $tar = new $this->myclass();
+ //$tar->addFile($filename,$binary);
+ $this->assertEqual(true, false);
+ }
+
+ public function test_260() {
+ $tar = new $this->myclass();
+ //$tar->removeFile($filename);
+ $this->assertEqual(true, false);
+ }
+
+ public function test_280() {
+ $tar = new $this->myclass();
+ //$tar->removeDirectory($dirname);
+ $this->assertEqual(true, false);
+ }
+
+ public function test_300() {
+ $tar = new $this->myclass();
+ //$tar->saveTar();
+ $this->assertEqual(true, false);
+ }
+
+ public function test_320() {
+ $tar = new $this->myclass();
+ //$tar->toTar();
+ $this->assertEqual(true, false);
+ }
+
+ public function test_340() {
+ $tar = new $this->myclass();
+ //$tar->toTarOutput();
+ $this->assertEqual(true, false);
+ }
+
+}
Added: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/Class.zipfileTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/Class.zipfileTest_.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/Class.zipfileTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -0,0 +1,15 @@
+<?php
+require_once('../init.php');
+//require_once(XOOPS_ROOT_PATH.'/class/class.zipfile.php');
+
+class TestOfZipfile extends UnitTestCase
+{
+ protected $myclass='zipfile';
+
+ public function SetUp() {
+ }
+
+ public function test_100() {
+ $this->assertEqual(true, false); //failure by default
+ }
+}
Added: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/CommentrendererTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/CommentrendererTest_.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/CommentrendererTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -0,0 +1,46 @@
+<?php
+require_once(dirname(__FILE__).'/../init.php');
+
+class CommentrenderTest extends MY_UnitTestCase
+{
+ protected $myclass = 'XoopsCommentRenderer';
+ protected $tpl = null;
+
+ public function SetUp() {
+ $this->tpl = new XoopsTpl();
+ $xoops = Xoops::getInstance();
+ $xoops->loadLanguage('comment');
+ //include_once $xoops->path('include/comment_constants.php');
+ }
+
+ public function test_100() {
+ $renderer = new $this->myclass($this->tpl);
+ $this->assertInstanceOf($this->myclass, $renderer);
+ }
+
+ public function test_120() {
+ $renderer = XoopsCommentRenderer::Instance($this->tpl);
+ $this->assertInstanceOf($this->myclass, $renderer);
+ }
+
+ public function test_140() {
+ $renderer = XoopsCommentRenderer::getInstance($this->tpl);
+ $this->assertInstanceOf($this->myclass, $renderer);
+ }
+
+ public function test_160() {
+ $renderer = XoopsCommentRenderer::getInstance($this->tpl);
+ $this->assertInstanceOf($this->myclass, $renderer);
+
+ $comment1 = new XoopsComment();
+ $comment1->setVar('com_status',XOOPS_COMMENT_ACTIVE);
+ $comment2 = new XoopsComment();
+ $comment2->setVar('com_status',XOOPS_COMMENT_ACTIVE);
+
+ $tmp = array($comment1, $comment2);
+ $renderer->setComments($tmp);
+
+ $renderer->renderFlatView();
+ }
+
+}
Added: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/RegistryTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/RegistryTest_.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/RegistryTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -0,0 +1,32 @@
+<?php
+require_once('../init.php');
+//require_once(XOOPS_ROOT_PATH.'/class/registry.php');
+
+class TestOfRegistry extends UnitTestCase
+{
+ protected $myclass = 'XoopsRegistry';
+
+ public function SetUp() {
+ }
+
+ public function tearDown() {
+ XoopsRegistry::_unsetInstance();
+ }
+
+ public function test_100() {
+ $value = XoopsRegistry::getInstance();
+ $this->assertIsA($value, $this->myclass);
+ $value2 = XoopsRegistry::getInstance();
+ $this->assertIdentical($value, $value2);
+ }
+
+ public function test_120() {
+ $registry = new $this->myclass(); // Dont use getInstance there
+ $this->assertIsA($registry, $this->myclass);
+ XoopsRegistry::setInstance($registry);
+ $this->assertIdentical($registry::$_registry, $registry);
+ $this->expectError();
+ XoopsRegistry::setInstance($registry);
+ }
+
+}
Added: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/SnoopyTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/SnoopyTest_.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/SnoopyTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -0,0 +1,14 @@
+<?php
+require_once('../init.php');
+//require_once(XOOPS_ROOT_PATH.'/class/snoopy.php');
+
+class TestOfSnoopy extends UnitTestCase
+{
+
+ public function SetUp() {
+ }
+
+ public function test_100() {
+ $this->assertEqual(true, false);
+ }
+}
Added: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/TardownloaderTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/TardownloaderTest_.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/TardownloaderTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -0,0 +1,14 @@
+<?php
+require_once('../init.php');
+//require_once(XOOPS_ROOT_PATH.'/class/tardownloader.php');
+
+class TestOfTardownloader extends UnitTestCase
+{
+
+ public function SetUp() {
+ }
+
+ public function test_100() {
+ $this->assertEqual(true, false);
+ }
+}
Added: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/XoopslocalTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/XoopslocalTest_.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/XoopslocalTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -0,0 +1,14 @@
+<?php
+require_once('../init.php');
+//require_once(XOOPS_ROOT_PATH.'/class/xoopslocal.php');
+
+class TestOfXoopslocal extends UnitTestCase
+{
+
+ public function SetUp() {
+ }
+
+ public function test_100() {
+ $this->assertEqual(true, false);
+ }
+}
Added: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/XoopsmailerTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/XoopsmailerTest_.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/XoopsmailerTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -0,0 +1,14 @@
+<?php
+require_once('../init.php');
+//require_once(XOOPS_ROOT_PATH.'/class/xoopsmailer.php');
+
+class TestOfXoopsmailer extends UnitTestCase
+{
+
+ public function SetUp() {
+ }
+
+ public function test_100() {
+ $this->assertEqual(true, false);
+ }
+}
Added: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/ZipdownloaderTest_.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/ZipdownloaderTest_.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/class/_archives/ZipdownloaderTest_.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -0,0 +1,14 @@
+<?php
+require_once('../init.php');
+//require_once(XOOPS_ROOT_PATH.'/class/zipdownloader.php');
+
+class TestOfZipdownloader extends UnitTestCase
+{
+
+ public function SetUp() {
+ }
+
+ public function test_100() {
+ $this->assertEqual(true, false);
+ }
+}
Modified: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/kernel/BlockTest.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/kernel/BlockTest.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/kernel/BlockTest.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -32,6 +32,11 @@
$this->assertTrue(isset($value['bcachetime']));
$this->assertTrue(isset($value['last_modified']));
}
+
+ public function test_110() {
+ $instance=new XoopsBlock(1);
+ $this->assertInstanceOf('XoopsBlock',$instance);
+ }
public function test_120() {
$instance=new XoopsBlock();
@@ -163,18 +168,38 @@
$instance=new XoopsBlock();
$value = $instance->getContent();
$this->assertSame('',$value);
+ $value = $instance->getContent('s','T');
+ $this->assertSame('',$value);
+ $value = $instance->getContent('s','H');
+ $this->assertSame('',$value);
+ $value = $instance->getContent('s','P');
+ $this->assertSame('',$value);
+ $value = $instance->getContent('s','S');
+ $this->assertSame('',$value);
}
public function test_560() {
$instance=new XoopsBlock();
$value = $instance->getOptions();
$this->assertSame(false,$value);
+
+ $instance->assignVar('block_type','C');
+ $value = $instance->getOptions();
+ $this->assertSame(false,$value);
}
public function test_580() {
$instance=new XoopsBlock();
$value = $instance->isCustom();
- $this->assertSame(false,$value);
+ $this->assertFalse($value);
+
+ $instance->assignVar('block_type','C');
+ $value = $instance->isCustom();
+ $this->assertTrue($value);
+
+ $instance->assignVar('block_type','E');
+ $value = $instance->isCustom();
+ $this->assertTrue($value);
}
public function test_600() {
Modified: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/kernel/SessionHandlerTest.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/kernel/SessionHandlerTest.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/kernel/SessionHandlerTest.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -64,18 +64,28 @@
public function test_230() {
$db=XoopsDatabaseFactory::getDatabaseConnection();
$instance=new $this->myclass($db);
- $value=$instance->gc_force();
- $this->assertSame(null,$value);
+ $expire=time()+10;
+ $value=$instance->gc($expire);
+ $this->assertSame(true,$value);
}
-
+
public function test_240() {
$db=XoopsDatabaseFactory::getDatabaseConnection();
$instance=new $this->myclass($db);
+ for ($i=1; $i<=20; $i++) {
+ $instance->gc_force();
+ }
+ $this->assertTrue(true);
+ }
+
+ public function test_260() {
+ $db=XoopsDatabaseFactory::getDatabaseConnection();
+ $instance=new $this->myclass($db);
$value=$instance->regenerate_id();
$this->assertSame(true,$value);
}
- public function test_260() {
+ public function test_280() {
$db=XoopsDatabaseFactory::getDatabaseConnection();
$instance=new $this->myclass($db);
$value=$instance->update_cookie();
Modified: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/phpunit.xml
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/phpunit.xml 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/phpunit.xml 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,5 +1,5 @@
-<phpunit
- colors="false"
+<phpunit
+ colors="false"
verbose="false"
stopOnError="false"
stopOnFailure="false"
@@ -7,25 +7,35 @@
stopOnSkipped="false"
bootstrap="bootstrap.php"
>
-
+
<testsuites>
- <testsuite name="My Test Suite">
- <directory>class</directory>
- <directory>kernel</directory>
- <directory>xoops_lib</directory>
- </testsuite>
+ <testsuite name="My Test Suite">
+ <directory>class</directory>
+ <directory>kernel</directory>
+ <directory>xoops_lib</directory>
+ </testsuite>
</testsuites>
-
+
<groups>
- <exclude>
- <group>slow</group>
- </exclude>
+ <exclude>
+ <group>slow</group>
+ </exclude>
</groups>
-
-<!--
+
+<filter>
+ <whitelist>
+ <directory suffix=".php">../htdocs/class</directory>
+ <directory suffix=".php">../htdocs/kernel</directory>
+ <directory suffix=".php">../htdocs/xoops_lib</directory>
+ <exclude>
+ <directory suffix=".php">../htdocs/xoops_lib/HTMLPurifier</directory>
+ <directory suffix=".php">../htdocs/xoops_lib/smarty</directory>
+ </exclude>
+ </whitelist>
+</filter>
+
<logging>
- <log type="coverage-html" target="test-reports" charset="UTF-8" yui="true" />
+ <log type="coverage-html" target="test-report" charset="UTF-8" yui="true" />
</logging>
--->
-
+
</phpunit>
\ No newline at end of file
Modified: XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/xoops_lib/XoopsTest.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/xoops_lib/XoopsTest.php 2013-06-17 19:05:31 UTC (rev 11714)
+++ XoopsCore/branches/2.6.x/2.6.0_alain091/UnitTestXoops/xoops_lib/XoopsTest.php 2013-06-18 19:04:33 UTC (rev 11715)
@@ -1,5 +1,5 @@
<?php
-require_once(dirname(__FILE__).'/../init.php');
+require_once(dirname(__FILE__).'/../init_mini.php');
class XoopsTest extends MY_UnitTestCase
{
|