parent
cc2d5b4d80
commit
325c107d5f
@ -1,110 +0,0 @@ |
|||||||
<?php |
|
||||||
/** |
|
||||||
* Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 00:36:52. |
|
||||||
*/ |
|
||||||
// exiting because generates fatal error: |
|
||||||
// Fatal error: Cannot instantiate abstract class Access in /var/lib/jenkins/jobs/chamilo-lms-1.9/workspace/tests/phpunit/classes/AccessTest.class.php on line 18 |
|
||||||
//exit; |
|
||||||
return; |
|
||||||
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() |
|
||||||
{ |
|
||||||
require_once dirname(__FILE__).'/../../../main/inc/global.inc.php'; |
|
||||||
$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() |
|
||||||
{ |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Generated from @assert () !== null. |
|
||||||
* |
|
||||||
* @covers Access::all |
|
||||||
*/ |
|
||||||
public function testAll() |
|
||||||
{ |
|
||||||
$this->assertNotSame( |
|
||||||
null, |
|
||||||
Access::all() |
|
||||||
); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Generated from @assert () === null. |
|
||||||
* |
|
||||||
* @covers Access::forbidden |
|
||||||
*/ |
|
||||||
public function testForbidden() |
|
||||||
{ |
|
||||||
$this->assertSame( |
|
||||||
null, |
|
||||||
Access::forbidden() |
|
||||||
); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Generated from @assert () === false. |
|
||||||
* |
|
||||||
* @covers Access::is_token_valid |
|
||||||
*/ |
|
||||||
public function testIs_token_valid() |
|
||||||
{ |
|
||||||
$this->assertSame( |
|
||||||
false, |
|
||||||
$this->object->is_token_valid() |
|
||||||
); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Generated from @assert () !== null. |
|
||||||
* |
|
||||||
* @covers Access::get_session_token |
|
||||||
*/ |
|
||||||
public function testGet_session_token() |
|
||||||
{ |
|
||||||
$this->assertNotSame( |
|
||||||
null, |
|
||||||
$this->object->get_session_token() |
|
||||||
); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* Generated from @assert () === false. |
|
||||||
* |
|
||||||
* @covers Access::authorize |
|
||||||
*/ |
|
||||||
public function testAuthorize() |
|
||||||
{ |
|
||||||
$this->assertSame( |
|
||||||
false, |
|
||||||
$this->object->authorize() |
|
||||||
); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* @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.' |
|
||||||
); |
|
||||||
} |
|
||||||
} |
|
||||||
Loading…
Reference in new issue