RunFrames.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace League\CLImate\Tests;
  3. trait RunFrames
  4. {
  5. abstract protected function shouldWrite($content, $count = 1);
  6. protected function runFrames1()
  7. {
  8. $this->shouldWrite("\e[m __ __\e[0m");
  9. $this->shouldWrite("\e[m \ \ / /\e[0m");
  10. $this->shouldWrite("\e[m \ \ /\ / /\e[0m");
  11. $this->shouldWrite("\e[m \ \/ \/ /\e[0m");
  12. $this->shouldWrite("\e[m \ /\ /\e[0m");
  13. $this->shouldWrite("\e[m \/ \/\e[0m");
  14. $this->shouldWrite("\e[m\e[0m");
  15. }
  16. protected function runFrames2()
  17. {
  18. $this->shouldWrite("\e[m\e[7A\r\e[K __ ______\e[0m");
  19. $this->shouldWrite("\e[m\r\e[K \ \ / / __ \\\e[0m");
  20. $this->shouldWrite("\e[m\r\e[K \ \ /\ / / | | |\e[0m");
  21. $this->shouldWrite("\e[m\r\e[K \ \/ \/ /| | | |\e[0m");
  22. $this->shouldWrite("\e[m\r\e[K \ /\ / | |__| |\e[0m");
  23. $this->shouldWrite("\e[m\r\e[K \/ \/ \____/\e[0m");
  24. $this->shouldWrite("\e[m\r\e[K\e[0m");
  25. }
  26. protected function runFrames3()
  27. {
  28. $this->shouldWrite("\e[m\e[7A\r\e[K __ ______ _____\e[0m");
  29. $this->shouldWrite("\e[m\r\e[K \ \ / / __ \| __ \\\e[0m");
  30. $this->shouldWrite("\e[m\r\e[K \ \ /\ / / | | | |__) |\e[0m");
  31. $this->shouldWrite("\e[m\r\e[K \ \/ \/ /| | | | _ /\e[0m");
  32. $this->shouldWrite("\e[m\r\e[K \ /\ / | |__| | | \ \\\e[0m");
  33. $this->shouldWrite("\e[m\r\e[K \/ \/ \____/|_| \_\\\e[0m");
  34. $this->shouldWrite("\e[m\r\e[K\e[0m");
  35. }
  36. protected function runFrames4()
  37. {
  38. $this->shouldWrite("\e[m\e[7A\r\e[K __ ______ _____ _ __\e[0m");
  39. $this->shouldWrite("\e[m\r\e[K \ \ / / __ \| __ \| |/ /\e[0m");
  40. $this->shouldWrite("\e[m\r\e[K \ \ /\ / / | | | |__) | ' /\e[0m");
  41. $this->shouldWrite("\e[m\r\e[K \ \/ \/ /| | | | _ /| <\e[0m");
  42. $this->shouldWrite("\e[m\r\e[K \ /\ / | |__| | | \ \| . \\\e[0m");
  43. $this->shouldWrite("\e[m\r\e[K \/ \/ \____/|_| \_\_|\_\\\e[0m");
  44. $this->shouldWrite("\e[m\r\e[K\e[0m");
  45. }
  46. protected function runFrames5()
  47. {
  48. $this->shouldWrite("\e[m\e[7A\r\e[K __ ______ _____ _ __ _____\e[0m");
  49. $this->shouldWrite("\e[m\r\e[K \ \ / / __ \| __ \| |/ // ____|\e[0m");
  50. $this->shouldWrite("\e[m\r\e[K \ \ /\ / / | | | |__) | ' /| (___\e[0m");
  51. $this->shouldWrite("\e[m\r\e[K \ \/ \/ /| | | | _ /| < \___ \\\e[0m");
  52. $this->shouldWrite("\e[m\r\e[K \ /\ / | |__| | | \ \| . \ ____) |\e[0m");
  53. $this->shouldWrite("\e[m\r\e[K \/ \/ \____/|_| \_\_|\_\_____/\e[0m");
  54. $this->shouldWrite("\e[m\r\e[K\e[0m");
  55. }
  56. }