parent
4e8d1f5139
commit
22be92232c
@ -0,0 +1,105 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 00:36:52. |
||||||
|
*/ |
||||||
|
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() |
||||||
|
{ |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 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.' |
||||||
|
); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,41 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 00:38:16. |
||||||
|
*/ |
||||||
|
class AccessurleditcoursestourlTest extends PHPUnit_Framework_TestCase |
||||||
|
{ |
||||||
|
/** |
||||||
|
* @var Accessurleditcoursestourl |
||||||
|
*/ |
||||||
|
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 Accessurleditcoursestourl; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 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 () === false. |
||||||
|
* |
||||||
|
* @covers Accessurleditcoursestourl::search_courses |
||||||
|
*/ |
||||||
|
public function testSearch_courses() |
||||||
|
{ |
||||||
|
$this->assertSame( |
||||||
|
false, |
||||||
|
$this->object->search_courses() |
||||||
|
); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,41 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 00:38:50. |
||||||
|
*/ |
||||||
|
class AccessurleditsessionstourlTest extends PHPUnit_Framework_TestCase |
||||||
|
{ |
||||||
|
/** |
||||||
|
* @var Accessurleditsessionstourl |
||||||
|
*/ |
||||||
|
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 Accessurleditsessionstourl; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 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 () === false. |
||||||
|
* |
||||||
|
* @covers Accessurleditsessionstourl::search_sessions |
||||||
|
*/ |
||||||
|
public function testSearch_sessions() |
||||||
|
{ |
||||||
|
$this->assertSame( |
||||||
|
false, |
||||||
|
$this->object->search_sessions() |
||||||
|
); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,41 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 00:39:52. |
||||||
|
*/ |
||||||
|
class AccessurledituserstourlTest extends PHPUnit_Framework_TestCase |
||||||
|
{ |
||||||
|
/** |
||||||
|
* @var Accessurledituserstourl |
||||||
|
*/ |
||||||
|
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 Accessurledituserstourl; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 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 () === false. |
||||||
|
* |
||||||
|
* @covers Accessurledituserstourl::search_users |
||||||
|
*/ |
||||||
|
public function testSearch_users() |
||||||
|
{ |
||||||
|
$this->assertSame( |
||||||
|
false, |
||||||
|
$this->object->search_users() |
||||||
|
); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,67 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 00:43:47. |
||||||
|
*/ |
||||||
|
class AddCourseToSessionTest extends PHPUnit_Framework_TestCase |
||||||
|
{ |
||||||
|
/** |
||||||
|
* @var AddCourseToSession |
||||||
|
*/ |
||||||
|
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 AddCourseToSession; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 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 AddCourseToSession::search_courses |
||||||
|
*/ |
||||||
|
public function testSearch_courses() |
||||||
|
{ |
||||||
|
$this->assertNotSame( |
||||||
|
null, |
||||||
|
$this->object->search_courses() |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Generated from @assert ('abc', 'single') !== null. |
||||||
|
* |
||||||
|
* @covers AddCourseToSession::search_courses |
||||||
|
*/ |
||||||
|
public function testSearch_courses2() |
||||||
|
{ |
||||||
|
$this->assertNotSame( |
||||||
|
null, |
||||||
|
$this->object->search_courses('abc', 'single') |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Generated from @assert ('abc', 'multiple') !== null. |
||||||
|
* |
||||||
|
* @covers AddCourseToSession::search_courses |
||||||
|
*/ |
||||||
|
public function testSearch_courses3() |
||||||
|
{ |
||||||
|
$this->assertNotSame( |
||||||
|
null, |
||||||
|
$this->object->search_courses('abc', 'multiple') |
||||||
|
); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,54 @@ |
|||||||
|
<?php |
||||||
|
/** |
||||||
|
* Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 01:03:12. |
||||||
|
*/ |
||||||
|
class AddManySessionToCategoryFunctionsTest extends PHPUnit_Framework_TestCase |
||||||
|
{ |
||||||
|
/** |
||||||
|
* @var AddManySessionToCategoryFunctions |
||||||
|
*/ |
||||||
|
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 AddManySessionToCategoryFunctions; |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* 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 () !== ''. |
||||||
|
* |
||||||
|
* @covers AddManySessionToCategoryFunctions::search_courses |
||||||
|
*/ |
||||||
|
public function testSearch_courses() |
||||||
|
{ |
||||||
|
$this->assertNotSame( |
||||||
|
'', |
||||||
|
$this->object->search_courses() |
||||||
|
); |
||||||
|
} |
||||||
|
|
||||||
|
/** |
||||||
|
* Generated from @assert ('abc','single') !== ''. |
||||||
|
* |
||||||
|
* @covers AddManySessionToCategoryFunctions::search_courses |
||||||
|
*/ |
||||||
|
public function testSearch_courses2() |
||||||
|
{ |
||||||
|
$this->assertNotSame( |
||||||
|
'', |
||||||
|
$this->object->search_courses('abc','single') |
||||||
|
); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue