Skip to content

Commit

Permalink
Adding default test classes for phpunit + generator script - refs #5568
Browse files Browse the repository at this point in the history
  • Loading branch information
ywarnier committed Oct 1, 2012
1 parent 38c8854 commit b0c14ae
Show file tree
Hide file tree
Showing 26 changed files with 2,853 additions and 0 deletions.
Binary file added tests/phpunit/.generate_test_classes.php.swp
Binary file not shown.
4 changes: 4 additions & 0 deletions tests/phpunit/README.txt
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
76 changes: 76 additions & 0 deletions tests/phpunit/classes/AccessAllTest.class.php
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.'
);
}
}
76 changes: 76 additions & 0 deletions tests/phpunit/classes/AccessForbiddenTest.class.php
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.'
);
}
}
100 changes: 100 additions & 0 deletions tests/phpunit/classes/AccessTest.class.php
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.'
);
}
}
136 changes: 136 additions & 0 deletions tests/phpunit/classes/AccessTokenTest.class.php
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.'
);
}
}
Loading

0 comments on commit b0c14ae

Please sign in to comment.