AddManySessionToCategoryFunctionsTest.lib.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. /**
  3. * Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 01:03:12.
  4. */
  5. class AddManySessionToCategoryFunctionsTest extends PHPUnit_Framework_TestCase
  6. {
  7. /**
  8. * @var AddManySessionToCategoryFunctions
  9. */
  10. protected $object;
  11. /**
  12. * Sets up the fixture, for example, opens a network connection.
  13. * This method is called before a test is executed.
  14. */
  15. protected function setUp()
  16. {
  17. require_once dirname(__FILE__).'/../../../main/inc/global.inc.php';
  18. $this->object = new AddManySessionToCategoryFunctions;
  19. }
  20. /**
  21. * Tears down the fixture, for example, closes a network connection.
  22. * This method is called after a test is executed.
  23. */
  24. protected function tearDown()
  25. {
  26. }
  27. /**
  28. * Generated from @assert () !== ''.
  29. *
  30. * @covers AddManySessionToCategoryFunctions::search_courses
  31. */
  32. public function testSearch_courses()
  33. {
  34. $this->assertNotSame(
  35. '',
  36. $this->object->search_courses()
  37. );
  38. }
  39. /**
  40. * Generated from @assert ('abc','single') !== ''.
  41. *
  42. * @covers AddManySessionToCategoryFunctions::search_courses
  43. */
  44. public function testSearch_courses2()
  45. {
  46. $this->assertNotSame(
  47. '',
  48. $this->object->search_courses('abc','single')
  49. );
  50. }
  51. }