TypographyHelperTest.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. App::uses('TypographyHelper', 'Tools.View/Helper');
  3. App::uses('View', 'View');
  4. App::uses('MyCakeTestCase', 'Tools.Lib');
  5. /**
  6. * TypographyHelper Test Case
  7. *
  8. */
  9. class TypographyHelperTest extends MyCakeTestCase {
  10. public $Typography;
  11. /**
  12. * setUp method
  13. *
  14. * @return void
  15. */
  16. public function setUp() {
  17. parent::setUp();
  18. $this->Typography = new TypographyHelper(new View(null));
  19. }
  20. /**
  21. * tearDown method
  22. *
  23. * @return void
  24. */
  25. public function tearDown() {
  26. unset($this->Typography);
  27. parent::tearDown();
  28. }
  29. /**
  30. * testAutoTypography method
  31. *
  32. * @return void
  33. */
  34. public function testAutoTypography() {
  35. $str = 'Some \'funny\' and "funky" test with a new
  36. paragraph and a
  37. new line tabbed in.';
  38. $res = $this->Typography->autoTypography($str);
  39. $this->out($res);
  40. $this->out(h($res));
  41. }
  42. /**
  43. * testFormatCharacter method
  44. *
  45. * @return void
  46. */
  47. public function testFormatCharacter() {
  48. }
  49. /**
  50. * testNl2brExceptPre method
  51. *
  52. * @return void
  53. */
  54. public function testNl2brExceptPre() {
  55. }
  56. }