HelperTest.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. /**
  3. * Generated by PHPUnit_SkeletonGenerator on 2014-12-04 at 12:32:35.
  4. */
  5. class HelperTest extends PHPUnit_Framework_TestCase {
  6. /**
  7. * Sets up the fixture, for example, opens a network connection.
  8. * This method is called before a test is executed.
  9. */
  10. protected function setUp() {
  11. }
  12. /**
  13. * Tears down the fixture, for example, closes a network connection.
  14. * This method is called after a test is executed.
  15. */
  16. protected function tearDown() {
  17. }
  18. /**
  19. * @covers Helper::TableMaker
  20. * @todo Implement testTableMaker().
  21. */
  22. public function testTableMaker() {
  23. // Remove the following lines when you implement this test.
  24. $this->markTestIncomplete(
  25. 'This test has not been implemented yet.'
  26. );
  27. }
  28. /**
  29. * @covers Helper::IsValidEmail
  30. * @todo Implement testIsValidEmail().
  31. */
  32. public function testIsValidEmail() {
  33. $validEmail="rob@robware.uk";
  34. $invalidEmail="rob@*";
  35. $this->assertEquals(true,Helper::IsValidEmail($validEmail));
  36. $this->assertEquals(false,Helper::IsValidEmail($invalidEmail));
  37. }
  38. /**
  39. * @covers Helper::DeleteCookie
  40. * @todo Implement testDeleteCookie().
  41. */
  42. public function testDeleteCookie() {
  43. // Remove the following lines when you implement this test.
  44. $this->markTestIncomplete(
  45. 'This test has not been implemented yet.'
  46. );
  47. }
  48. /**
  49. * @covers Helper::GetMaxUploadString
  50. * @todo Implement testGetMaxUploadString().
  51. */
  52. public function testGetMaxUploadString() {
  53. // Remove the following lines when you implement this test.
  54. $this->markTestIncomplete(
  55. 'This test has not been implemented yet.'
  56. );
  57. }
  58. }