-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding default test classes for phpunit + generator script - refs #5568
- Loading branch information
Showing
26 changed files
with
2,853 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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,4 @@ | ||
Do not modify these test classes by hand. They will probably get overwritten | ||
with the next automatic generation. Instead, use copies of the existing files | ||
and suffix them with "Custom" to maintain them in the code versioning system. | ||
For example: AccessTestCustom.class.php |
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,76 @@ | ||
<?php | ||
/** | ||
* Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08. | ||
*/ | ||
class AccessAllTest extends PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @var AccessAll | ||
*/ | ||
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 AccessAll; | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
} | ||
|
||
/** | ||
* @covers AccessAll::instance | ||
* @todo Implement testInstance(). | ||
*/ | ||
public function testInstance() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessAll::can_edit | ||
* @todo Implement testCan_edit(). | ||
*/ | ||
public function testCan_edit() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessAll::can_view | ||
* @todo Implement testCan_view(). | ||
*/ | ||
public function testCan_view() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessAll::authorize | ||
* @todo Implement testAuthorize(). | ||
*/ | ||
public function testAuthorize() | ||
{ | ||
// 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,76 @@ | ||
<?php | ||
/** | ||
* Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08. | ||
*/ | ||
class AccessForbiddenTest extends PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @var AccessForbidden | ||
*/ | ||
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 AccessForbidden; | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
} | ||
|
||
/** | ||
* @covers AccessForbidden::instance | ||
* @todo Implement testInstance(). | ||
*/ | ||
public function testInstance() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessForbidden::can_edit | ||
* @todo Implement testCan_edit(). | ||
*/ | ||
public function testCan_edit() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessForbidden::can_view | ||
* @todo Implement testCan_view(). | ||
*/ | ||
public function testCan_view() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessForbidden::authorize | ||
* @todo Implement testAuthorize(). | ||
*/ | ||
public function testAuthorize() | ||
{ | ||
// 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,100 @@ | ||
<?php | ||
/** | ||
* Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:07. | ||
*/ | ||
class AccessTest extends PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @var Access | ||
*/ | ||
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 Access; | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
} | ||
|
||
/** | ||
* @covers Access::all | ||
* @todo Implement testAll(). | ||
*/ | ||
public function testAll() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers Access::forbidden | ||
* @todo Implement testForbidden(). | ||
*/ | ||
public function testForbidden() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers Access::is_token_valid | ||
* @todo Implement testIs_token_valid(). | ||
*/ | ||
public function testIs_token_valid() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers Access::get_session_token | ||
* @todo Implement testGet_session_token(). | ||
*/ | ||
public function testGet_session_token() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers Access::get_token | ||
* @todo Implement testGet_token(). | ||
*/ | ||
public function testGet_token() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers Access::authorize | ||
* @todo Implement testAuthorize(). | ||
*/ | ||
public function testAuthorize() | ||
{ | ||
// 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,136 @@ | ||
<?php | ||
/** | ||
* Generated by PHPUnit_SkeletonGenerator on 2012-10-01 at 14:44:08. | ||
*/ | ||
class AccessTokenTest extends PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @var AccessToken | ||
*/ | ||
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 AccessToken; | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
} | ||
|
||
/** | ||
* @covers AccessToken::empty_token | ||
* @todo Implement testEmpty_token(). | ||
*/ | ||
public function testEmpty_token() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessToken::parse | ||
* @todo Implement testParse(). | ||
*/ | ||
public function testParse() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessToken::create | ||
* @todo Implement testCreate(). | ||
*/ | ||
public function testCreate() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessToken::get_id | ||
* @todo Implement testGet_id(). | ||
*/ | ||
public function testGet_id() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessToken::get_user_id | ||
* @todo Implement testGet_user_id(). | ||
*/ | ||
public function testGet_user_id() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessToken::get_key | ||
* @todo Implement testGet_key(). | ||
*/ | ||
public function testGet_key() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessToken::is_empty | ||
* @todo Implement testIs_empty(). | ||
*/ | ||
public function testIs_empty() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessToken::is_valid | ||
* @todo Implement testIs_valid(). | ||
*/ | ||
public function testIs_valid() | ||
{ | ||
// Remove the following lines when you implement this test. | ||
$this->markTestIncomplete( | ||
'This test has not been implemented yet.' | ||
); | ||
} | ||
|
||
/** | ||
* @covers AccessToken::__toString | ||
* @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.' | ||
); | ||
} | ||
} |
Oops, something went wrong.