This repository has been archived by the owner on Nov 26, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #519 from Hackwar/junit6
UT 6/10: Adding Unittests for document and error package
- Loading branch information
Showing
17 changed files
with
1,286 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
<?php | ||
/** | ||
* @package Joomla.UnitTest | ||
* @subpackage Document | ||
* | ||
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE | ||
*/ | ||
|
||
include_once JPATH_PLATFORM . '/joomla/document/error/error.php'; | ||
|
||
/** | ||
* Test class for JDocumentError. | ||
* Generated by PHPUnit on 2011-10-26 at 19:36:13. | ||
*/ | ||
class JDocumentErrorTest extends PHPUnit_Framework_TestCase { | ||
|
||
/** | ||
* @var JDocumentError | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
*/ | ||
protected function setUp() { | ||
$this->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.' | ||
); | ||
} | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* @package Joomla.UnitTest | ||
* | ||
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE | ||
*/ | ||
|
||
include_once JPATH_PLATFORM . '/joomla/document/feed/feed.php'; | ||
|
||
/** | ||
* Test class for JFeedEnclosure. | ||
* Generated by PHPUnit on 2011-10-26 at 19:36:22. | ||
*/ | ||
class JFeedEnclosureTest extends PHPUnit_Framework_TestCase { | ||
|
||
/** | ||
* @var JFeedEnclosure | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
*/ | ||
protected function setUp() { | ||
//$this->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.'); | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
/** | ||
* @package Joomla.UnitTest | ||
* | ||
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE | ||
*/ | ||
|
||
include_once JPATH_PLATFORM . '/joomla/document/feed/feed.php'; | ||
|
||
/** | ||
* Test class for JFeedImage. | ||
* Generated by PHPUnit on 2011-10-26 at 19:36:21. | ||
*/ | ||
class JFeedImageTest extends PHPUnit_Framework_TestCase { | ||
|
||
/** | ||
* @var JFeedImage | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
*/ | ||
protected function setUp() { | ||
//$this->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.'); | ||
} | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
/** | ||
* @package Joomla.UnitTest | ||
* | ||
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved. | ||
* @license GNU General Public License version 2 or later; see LICENSE | ||
*/ | ||
|
||
include_once JPATH_PLATFORM . '/joomla/document/feed/feed.php'; | ||
|
||
/** | ||
* Test class for JFeedItem. | ||
* Generated by PHPUnit on 2011-10-26 at 19:36:18. | ||
*/ | ||
class JFeedItemTest extends PHPUnit_Framework_TestCase { | ||
|
||
/** | ||
* @var JFeedItem | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
*/ | ||
protected function setUp() { | ||
$this->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.' | ||
); | ||
} | ||
|
||
} | ||
|
||
?> |
Oops, something went wrong.