AddCourseToSessionTest.lib.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * Generated by PHPUnit_SkeletonGenerator on 2013-02-17 at 00:43:47.
  4. */
  5. class AddCourseToSessionTest extends PHPUnit_Framework_TestCase
  6. {
  7. /**
  8. * @var AddCourseToSession
  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. require_once dirname(__FILE__).'/../../../main/inc/lib/database.lib.php';
  19. $this->object = new AddCourseToSession;
  20. }
  21. /**
  22. * Tears down the fixture, for example, closes a network connection.
  23. * This method is called after a test is executed.
  24. */
  25. protected function tearDown()
  26. {
  27. }
  28. /**
  29. * Generated from @assert () !== null.
  30. *
  31. * @covers AddCourseToSession::search_courses
  32. */
  33. public function testSearch_courses()
  34. {
  35. $this->assertNotSame(
  36. null,
  37. $this->object->search_courses()
  38. );
  39. }
  40. /**
  41. * Generated from @assert ('abc', 'single') !== null.
  42. *
  43. * @covers AddCourseToSession::search_courses
  44. */
  45. public function testSearch_courses2()
  46. {
  47. $this->assertNotSame(
  48. null,
  49. $this->object->search_courses('abc', 'single')
  50. );
  51. }
  52. /**
  53. * Generated from @assert ('abc', 'multiple') !== null.
  54. *
  55. * @covers AddCourseToSession::search_courses
  56. */
  57. public function testSearch_courses3()
  58. {
  59. $this->assertNotSame(
  60. null,
  61. $this->object->search_courses('abc', 'multiple')
  62. );
  63. }
  64. }