Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removing Tests fom PHPTAL if you want the full framework see at www.p…

  • Loading branch information...
commit 3b849f58270c03d8d91808323c019d2ec783baeb 1 parent 1c68af1
authored August 19, 2010

Showing 306 changed files with 0 additions and 9,549 deletions. Show diff stats Hide diff stats

  1. 63  app/libs/Addons/PHPTAL/tests/ArrayOverloadTest.php
  2. 151  app/libs/Addons/PHPTAL/tests/AttributesInterpolationTest.php
  3. 56  app/libs/Addons/PHPTAL/tests/BlockTest.php
  4. 158  app/libs/Addons/PHPTAL/tests/CodeCacheTest.php
  5. 55  app/libs/Addons/PHPTAL/tests/CommentFilterTest.php
  6. 94  app/libs/Addons/PHPTAL/tests/CommentTest.php
  7. 37  app/libs/Addons/PHPTAL/tests/ContentEncodingTest.php
  8. 164  app/libs/Addons/PHPTAL/tests/ContentInterpolationTest.php
  9. 84  app/libs/Addons/PHPTAL/tests/DoctypeTest.php
  10. 129  app/libs/Addons/PHPTAL/tests/DomTest.php
  11. 73  app/libs/Addons/PHPTAL/tests/EchoExecuteTest.php
  12. 165  app/libs/Addons/PHPTAL/tests/EscapeCDATATest.php
  13. 201  app/libs/Addons/PHPTAL/tests/EscapeHTMLTest.php
  14. 168  app/libs/Addons/PHPTAL/tests/GetTextTest.php
  15. 170  app/libs/Addons/PHPTAL/tests/HTML5ModeTest.php
  16. 39  app/libs/Addons/PHPTAL/tests/HTMLGeneratorTest.php
  17. 112  app/libs/Addons/PHPTAL/tests/I18NAttributesTest.php
  18. 59  app/libs/Addons/PHPTAL/tests/I18NDummyTranslator.php
  19. 83  app/libs/Addons/PHPTAL/tests/I18NNameTest.php
  20. 79  app/libs/Addons/PHPTAL/tests/I18NTranslateTest.php
  21. 91  app/libs/Addons/PHPTAL/tests/IncludePathTest.php
  22. 44  app/libs/Addons/PHPTAL/tests/Latin1Test.php
  23. 189  app/libs/Addons/PHPTAL/tests/MetalMacroTest.php
  24. 198  app/libs/Addons/PHPTAL/tests/MetalSlotTest.php
  25. 104  app/libs/Addons/PHPTAL/tests/NamespacesTest.php
  26. 207  app/libs/Addons/PHPTAL/tests/OldTest.php
  27. 59  app/libs/Addons/PHPTAL/tests/OverloadingTest.php
  28. 98  app/libs/Addons/PHPTAL/tests/ParserTest.php
  29. 39  app/libs/Addons/PHPTAL/tests/PhpModeTest.php
  30. 150  app/libs/Addons/PHPTAL/tests/PhpTransformerTest.php
  31. 172  app/libs/Addons/PHPTAL/tests/PhptalCacheTest.php
  32. 74  app/libs/Addons/PHPTAL/tests/PhptalIdTest.php
  33. 90  app/libs/Addons/PHPTAL/tests/PhptalPathTest.php
  34. 191  app/libs/Addons/PHPTAL/tests/PhptalTest.php
  35. 44  app/libs/Addons/PHPTAL/tests/PhptalUsageTest.php
  36. 61  app/libs/Addons/PHPTAL/tests/PostFilterTest.php
  37. 144  app/libs/Addons/PHPTAL/tests/PreFilterNormalizeTest.php
  38. 85  app/libs/Addons/PHPTAL/tests/PreFilterTest.php
  39. 72  app/libs/Addons/PHPTAL/tests/ReadableErrorTest.php
  40. 95  app/libs/Addons/PHPTAL/tests/SimpleGenerationTest.php
  41. 191  app/libs/Addons/PHPTAL/tests/TalAttributesTest.php
  42. 96  app/libs/Addons/PHPTAL/tests/TalCommentTest.php
  43. 90  app/libs/Addons/PHPTAL/tests/TalConditionTest.php
  44. 202  app/libs/Addons/PHPTAL/tests/TalContentTest.php
  45. 366  app/libs/Addons/PHPTAL/tests/TalDefineTest.php
  46. 66  app/libs/Addons/PHPTAL/tests/TalOmitTagTest.php
  47. 67  app/libs/Addons/PHPTAL/tests/TalOnErrorTest.php
  48. 432  app/libs/Addons/PHPTAL/tests/TalRepeatTest.php
  49. 107  app/libs/Addons/PHPTAL/tests/TalReplaceTest.php
  50. 46  app/libs/Addons/PHPTAL/tests/TalesExistTest.php
  51. 56  app/libs/Addons/PHPTAL/tests/TalesIssetNullTest.php
  52. 32  app/libs/Addons/PHPTAL/tests/TalesModeTest.php
  53. 37  app/libs/Addons/PHPTAL/tests/TalesPhpTest.php
  54. 29  app/libs/Addons/PHPTAL/tests/TalesPhpWithReplaceTest.php
  55. 102  app/libs/Addons/PHPTAL/tests/TalesStringTest.php
  56. 149  app/libs/Addons/PHPTAL/tests/TalesTest.php
  57. 50  app/libs/Addons/PHPTAL/tests/TemplateRepositoryTest.php
  58. 102  app/libs/Addons/PHPTAL/tests/TriggerTest.php
  59. 361  app/libs/Addons/PHPTAL/tests/UTF8Test.php
  60. 139  app/libs/Addons/PHPTAL/tests/XHTMLModeTest.php
  61. 359  app/libs/Addons/PHPTAL/tests/XmlParserTest.php
  62. 95  app/libs/Addons/PHPTAL/tests/config.php
  63. 7  app/libs/Addons/PHPTAL/tests/gen-mos.sh
  64. 1  app/libs/Addons/PHPTAL/tests/input/array-overload.01.html
  65. 1  app/libs/Addons/PHPTAL/tests/input/code-cache-01.html
  66. 9  app/libs/Addons/PHPTAL/tests/input/comment-filter-01.html
  67. 3  app/libs/Addons/PHPTAL/tests/input/content-encoding.xml
  68. 6  app/libs/Addons/PHPTAL/tests/input/doctype.01.html
  69. 6  app/libs/Addons/PHPTAL/tests/input/doctype.02.html
  70. 2  app/libs/Addons/PHPTAL/tests/input/doctype.02.user.html
  71. 1  app/libs/Addons/PHPTAL/tests/input/doctype.03.html
  72. 3  app/libs/Addons/PHPTAL/tests/input/doctype.03.sub1.html
  73. 6  app/libs/Addons/PHPTAL/tests/input/doctype.03.sub2.html
  74. 9  app/libs/Addons/PHPTAL/tests/input/doctype.04.html
  75. 3  app/libs/Addons/PHPTAL/tests/input/error-01.html
  76. 3  app/libs/Addons/PHPTAL/tests/input/error-02.html
  77. 3  app/libs/Addons/PHPTAL/tests/input/error-02.macro.html
  78. 4  app/libs/Addons/PHPTAL/tests/input/error-03.html
  79. 5  app/libs/Addons/PHPTAL/tests/input/error-03.macro.html
  80. 16  app/libs/Addons/PHPTAL/tests/input/escape.html
  81. 1  app/libs/Addons/PHPTAL/tests/input/gettext.01.html
  82. 1  app/libs/Addons/PHPTAL/tests/input/gettext.02.html
  83. 1  app/libs/Addons/PHPTAL/tests/input/gettext.03.html
  84. 1  app/libs/Addons/PHPTAL/tests/input/gettext.04.html
  85. 3  app/libs/Addons/PHPTAL/tests/input/gettext.05.html
  86. 6  app/libs/Addons/PHPTAL/tests/input/gettext.06.html
  87. 1  app/libs/Addons/PHPTAL/tests/input/gettext.07.html
  88. 3  app/libs/Addons/PHPTAL/tests/input/i18n-attributes-01.html
  89. 3  app/libs/Addons/PHPTAL/tests/input/i18n-attributes-02.html
  90. 6  app/libs/Addons/PHPTAL/tests/input/i18n-attributes-03.html
  91. 7  app/libs/Addons/PHPTAL/tests/input/i18n-attributes-04.html
  92. 1  app/libs/Addons/PHPTAL/tests/input/i18n-attributes-05.html
  93. 1  app/libs/Addons/PHPTAL/tests/input/i18n-name-01.html
  94. 3  app/libs/Addons/PHPTAL/tests/input/i18n-name-02.html
  95. 5  app/libs/Addons/PHPTAL/tests/input/i18n-name-03.html
  96. 5  app/libs/Addons/PHPTAL/tests/input/i18n-name-04.html
  97. 5  app/libs/Addons/PHPTAL/tests/input/i18n-name-05.html
  98. 11  app/libs/Addons/PHPTAL/tests/input/i18n-name-06.html
  99. 1  app/libs/Addons/PHPTAL/tests/input/i18n-translate-01.html
  100. 1  app/libs/Addons/PHPTAL/tests/input/i18n-translate-02.html
  101. 18  app/libs/Addons/PHPTAL/tests/input/metal-macro.01.html
  102. 6  app/libs/Addons/PHPTAL/tests/input/metal-macro.02.html
  103. 11  app/libs/Addons/PHPTAL/tests/input/metal-macro.03.html
  104. 11  app/libs/Addons/PHPTAL/tests/input/metal-macro.04.html
  105. 3  app/libs/Addons/PHPTAL/tests/input/metal-macro.04.main.html
  106. 7  app/libs/Addons/PHPTAL/tests/input/metal-macro.05.html
  107. 7  app/libs/Addons/PHPTAL/tests/input/metal-macro.06.html
  108. 8  app/libs/Addons/PHPTAL/tests/input/metal-macro.07.html
  109. 1  app/libs/Addons/PHPTAL/tests/input/metal-macro.08.html
  110. 9  app/libs/Addons/PHPTAL/tests/input/metal-macro.09.html
  111. 3  app/libs/Addons/PHPTAL/tests/input/metal-macro.10.html
  112. 1  app/libs/Addons/PHPTAL/tests/input/metal-macro.11.html
  113. 17  app/libs/Addons/PHPTAL/tests/input/metal-slot.01.html
  114. 21  app/libs/Addons/PHPTAL/tests/input/metal-slot.02.html
  115. 9  app/libs/Addons/PHPTAL/tests/input/metal-slot.03.html
  116. 15  app/libs/Addons/PHPTAL/tests/input/metal-slot.04.html
  117. 19  app/libs/Addons/PHPTAL/tests/input/metal-slot.05.html
  118. 1  app/libs/Addons/PHPTAL/tests/input/multiuse.01.html
  119. 1  app/libs/Addons/PHPTAL/tests/input/multiuse.02.html
  120. 8  app/libs/Addons/PHPTAL/tests/input/namespaces.01.html
  121. 11  app/libs/Addons/PHPTAL/tests/input/namespaces.02.html
  122. 12  app/libs/Addons/PHPTAL/tests/input/namespaces.03.html
  123. 33  app/libs/Addons/PHPTAL/tests/input/old-03.html
  124. 12  app/libs/Addons/PHPTAL/tests/input/old-06.html
  125. 11  app/libs/Addons/PHPTAL/tests/input/old-08-mcr.html
  126. 9  app/libs/Addons/PHPTAL/tests/input/old-08.html
  127. 3  app/libs/Addons/PHPTAL/tests/input/old-11.html
  128. 9  app/libs/Addons/PHPTAL/tests/input/old-12.html
  129. 40  app/libs/Addons/PHPTAL/tests/input/old-13.html
  130. 11  app/libs/Addons/PHPTAL/tests/input/old-15.html
  131. 56  app/libs/Addons/PHPTAL/tests/input/old-16.html
  132. 11  app/libs/Addons/PHPTAL/tests/input/old-17.html
  133. 6  app/libs/Addons/PHPTAL/tests/input/old-19.html
  134. 8  app/libs/Addons/PHPTAL/tests/input/old-20.html
  135. 17  app/libs/Addons/PHPTAL/tests/input/old-21.html
  136. 4  app/libs/Addons/PHPTAL/tests/input/old-23.html
  137. 8  app/libs/Addons/PHPTAL/tests/input/old-29-mcr.html
  138. 2  app/libs/Addons/PHPTAL/tests/input/old-29.html
  139. 12  app/libs/Addons/PHPTAL/tests/input/old-30.html
  140. 5  app/libs/Addons/PHPTAL/tests/input/old-31.html
  141. 9  app/libs/Addons/PHPTAL/tests/input/old-32.html
  142. 5  app/libs/Addons/PHPTAL/tests/input/overloading-01.html
  143. 10  app/libs/Addons/PHPTAL/tests/input/parser.01.xml
  144. 2  app/libs/Addons/PHPTAL/tests/input/parser.02.xml
  145. 6  app/libs/Addons/PHPTAL/tests/input/parser.03.xml
  146. 4  app/libs/Addons/PHPTAL/tests/input/php-mode.01.xml
  147. 3  app/libs/Addons/PHPTAL/tests/input/php-mode.02.xml
  148. 14  app/libs/Addons/PHPTAL/tests/input/php.html
  149. 1  app/libs/Addons/PHPTAL/tests/input/phptal.01.html
  150. 8  app/libs/Addons/PHPTAL/tests/input/phptal.02.html
  151. 7  app/libs/Addons/PHPTAL/tests/input/phptal.03.html
  152. 4  app/libs/Addons/PHPTAL/tests/input/phptal.04.html
  153. 1  app/libs/Addons/PHPTAL/tests/input/phptal.05.html
  154. 1  app/libs/Addons/PHPTAL/tests/input/phptal.06.html
  155. 18  app/libs/Addons/PHPTAL/tests/input/phptal.id.01.html
  156. 3  app/libs/Addons/PHPTAL/tests/input/postfilter.01.html
  157. 7  app/libs/Addons/PHPTAL/tests/input/prefilter.01.html
  158. 1  app/libs/Addons/PHPTAL/tests/input/prefilter.02.html
  159. 5  app/libs/Addons/PHPTAL/tests/input/prefilter.02.macro.html
  160. 3  app/libs/Addons/PHPTAL/tests/input/prefilter.03.html
  161. 1  app/libs/Addons/PHPTAL/tests/input/tal-attributes.01.html
  162. 1  app/libs/Addons/PHPTAL/tests/input/tal-attributes.02.html
  163. 1  app/libs/Addons/PHPTAL/tests/input/tal-attributes.03.html
  164. 1  app/libs/Addons/PHPTAL/tests/input/tal-attributes.04.html
  165. 2  app/libs/Addons/PHPTAL/tests/input/tal-attributes.05.html
  166. 2  app/libs/Addons/PHPTAL/tests/input/tal-attributes.06.html
  167. 1  app/libs/Addons/PHPTAL/tests/input/tal-attributes.07.html
  168. 1  app/libs/Addons/PHPTAL/tests/input/tal-attributes.08.html
  169. 1  app/libs/Addons/PHPTAL/tests/input/tal-attributes.09.html
  170. 1  app/libs/Addons/PHPTAL/tests/input/tal-attributes.10.html
  171. 1  app/libs/Addons/PHPTAL/tests/input/tal-comment.01.html
  172. 6  app/libs/Addons/PHPTAL/tests/input/tal-comment.02.html
  173. 1  app/libs/Addons/PHPTAL/tests/input/tal-condition.01.html
  174. 2  app/libs/Addons/PHPTAL/tests/input/tal-condition.02.html
  175. 2  app/libs/Addons/PHPTAL/tests/input/tal-condition.03.html
  176. 6  app/libs/Addons/PHPTAL/tests/input/tal-condition.04.html
  177. 1  app/libs/Addons/PHPTAL/tests/input/tal-content.01.html
  178. 1  app/libs/Addons/PHPTAL/tests/input/tal-content.02.html
  179. 1  app/libs/Addons/PHPTAL/tests/input/tal-content.03.html
  180. 1  app/libs/Addons/PHPTAL/tests/input/tal-content.04.html
  181. 1  app/libs/Addons/PHPTAL/tests/input/tal-content.05.html
  182. 2  app/libs/Addons/PHPTAL/tests/input/tal-content.06.html
  183. 6  app/libs/Addons/PHPTAL/tests/input/tal-define.01.html
  184. 4  app/libs/Addons/PHPTAL/tests/input/tal-define.02.html
  185. 4  app/libs/Addons/PHPTAL/tests/input/tal-define.03.html
  186. 4  app/libs/Addons/PHPTAL/tests/input/tal-define.04.html
  187. 4  app/libs/Addons/PHPTAL/tests/input/tal-define.05.html
  188. 8  app/libs/Addons/PHPTAL/tests/input/tal-define.06.html
  189. 3  app/libs/Addons/PHPTAL/tests/input/tal-define.07.html
  190. 3  app/libs/Addons/PHPTAL/tests/input/tal-define.08.html
  191. 4  app/libs/Addons/PHPTAL/tests/input/tal-define.09.html
  192. 3  app/libs/Addons/PHPTAL/tests/input/tal-define.10.html
  193. 9  app/libs/Addons/PHPTAL/tests/input/tal-define.11.html
  194. 1  app/libs/Addons/PHPTAL/tests/input/tal-define.12.html
  195. 7  app/libs/Addons/PHPTAL/tests/input/tal-define.13.html
  196. 4  app/libs/Addons/PHPTAL/tests/input/tal-define.14.html
  197. 3  app/libs/Addons/PHPTAL/tests/input/tal-omit-tag.01.html
  198. 5  app/libs/Addons/PHPTAL/tests/input/tal-omit-tag.02.html
  199. 3  app/libs/Addons/PHPTAL/tests/input/tal-on-error.01.html
  200. 3  app/libs/Addons/PHPTAL/tests/input/tal-on-error.02.html
  201. 11  app/libs/Addons/PHPTAL/tests/input/tal-on-error.03.html
  202. 4  app/libs/Addons/PHPTAL/tests/input/tal-repeat.01.html
  203. 10  app/libs/Addons/PHPTAL/tests/input/tal-repeat.02.html
  204. 10  app/libs/Addons/PHPTAL/tests/input/tal-repeat.03.html
  205. 11  app/libs/Addons/PHPTAL/tests/input/tal-repeat.04.html
  206. 3  app/libs/Addons/PHPTAL/tests/input/tal-repeat.05.html
  207. 10  app/libs/Addons/PHPTAL/tests/input/tal-repeat.06.html
  208. 11  app/libs/Addons/PHPTAL/tests/input/tal-repeat.07.html
  209. 1  app/libs/Addons/PHPTAL/tests/input/tal-replace.01.html
  210. 1  app/libs/Addons/PHPTAL/tests/input/tal-replace.02.html
  211. 1  app/libs/Addons/PHPTAL/tests/input/tal-replace.03.html
  212. 1  app/libs/Addons/PHPTAL/tests/input/tal-replace.04.html
  213. 1  app/libs/Addons/PHPTAL/tests/input/tal-replace.05.html
  214. 1  app/libs/Addons/PHPTAL/tests/input/tal-replace.06.html
  215. 5  app/libs/Addons/PHPTAL/tests/input/tal-replace.07.html
  216. 6  app/libs/Addons/PHPTAL/tests/input/tales-exist-01.html
  217. 4  app/libs/Addons/PHPTAL/tests/input/tales-exist-02.html
  218. 4  app/libs/Addons/PHPTAL/tests/input/tales-string-01.html
  219. 2  app/libs/Addons/PHPTAL/tests/input/tales-string-02.html
  220. 6  app/libs/Addons/PHPTAL/tests/input/tales-string-03.html
  221. 5  app/libs/Addons/PHPTAL/tests/input/tales-true.html
  222. 1  app/libs/Addons/PHPTAL/tests/input/tales.mode.01.xml
  223. 3  app/libs/Addons/PHPTAL/tests/input/talesphpwithreplace.01.html
  224. 7  app/libs/Addons/PHPTAL/tests/input/trigger.01.html
  225. 425  app/libs/Addons/PHPTAL/tests/input/utf8.xml
  226. 27  app/libs/Addons/PHPTAL/tests/input/xml.01.xml
  227. 4  app/libs/Addons/PHPTAL/tests/input/xml.02.xml
  228. 11  app/libs/Addons/PHPTAL/tests/input/xml.03.xml
  229. 16  app/libs/Addons/PHPTAL/tests/input/xml.04.xml
  230. BIN  app/libs/Addons/PHPTAL/tests/locale/en_GB/LC_MESSAGES/test.mo
  231. 12  app/libs/Addons/PHPTAL/tests/locale/en_GB/LC_MESSAGES/test.php
  232. 35  app/libs/Addons/PHPTAL/tests/locale/en_GB/LC_MESSAGES/test.po
  233. BIN  app/libs/Addons/PHPTAL/tests/locale/en_GB/LC_MESSAGES/test2.mo
  234. 17  app/libs/Addons/PHPTAL/tests/locale/en_GB/LC_MESSAGES/test2.po
  235. BIN  app/libs/Addons/PHPTAL/tests/locale/es_ES/LC_MESSAGES/test.mo
  236. 19  app/libs/Addons/PHPTAL/tests/locale/es_ES/LC_MESSAGES/test.po
  237. BIN  app/libs/Addons/PHPTAL/tests/locale/fr_FR/LC_MESSAGES/test.mo
  238. 18  app/libs/Addons/PHPTAL/tests/locale/fr_FR/LC_MESSAGES/test.php
  239. 29  app/libs/Addons/PHPTAL/tests/locale/fr_FR/LC_MESSAGES/test.po
  240. BIN  app/libs/Addons/PHPTAL/tests/locale/fr_FR/LC_MESSAGES/test2.mo
  241. 18  app/libs/Addons/PHPTAL/tests/locale/fr_FR/LC_MESSAGES/test2.php
  242. 23  app/libs/Addons/PHPTAL/tests/locale/fr_FR/LC_MESSAGES/test2.po
  243. 1  app/libs/Addons/PHPTAL/tests/output/array-overload.01.html
  244. 5  app/libs/Addons/PHPTAL/tests/output/comment-filter-01.html
  245. 3  app/libs/Addons/PHPTAL/tests/output/content-encoding.xml
  246. 6  app/libs/Addons/PHPTAL/tests/output/doctype.01.html
  247. 6  app/libs/Addons/PHPTAL/tests/output/doctype.02.html
  248. 6  app/libs/Addons/PHPTAL/tests/output/doctype.03.html
  249. 9  app/libs/Addons/PHPTAL/tests/output/doctype.04.html
  250. 16  app/libs/Addons/PHPTAL/tests/output/escape.html
  251. 1  app/libs/Addons/PHPTAL/tests/output/gettext.01.html
  252. 1  app/libs/Addons/PHPTAL/tests/output/gettext.02.html
  253. 1  app/libs/Addons/PHPTAL/tests/output/gettext.03.html
  254. 1  app/libs/Addons/PHPTAL/tests/output/gettext.04.html
  255. 3  app/libs/Addons/PHPTAL/tests/output/gettext.05.html
  256. 5  app/libs/Addons/PHPTAL/tests/output/gettext.06.html
  257. 1  app/libs/Addons/PHPTAL/tests/output/gettext.07.html
  258. 3  app/libs/Addons/PHPTAL/tests/output/i18n-attributes-01.html
  259. 3  app/libs/Addons/PHPTAL/tests/output/i18n-attributes-02.html
  260. 3  app/libs/Addons/PHPTAL/tests/output/i18n-attributes-03.html
  261. 3  app/libs/Addons/PHPTAL/tests/output/i18n-attributes-04.html
  262. 1  app/libs/Addons/PHPTAL/tests/output/i18n-attributes-05.html
  263. 1  app/libs/Addons/PHPTAL/tests/output/i18n-name-02.html
  264. 3  app/libs/Addons/PHPTAL/tests/output/i18n-name-03.html
  265. 3  app/libs/Addons/PHPTAL/tests/output/i18n-name-04.html
  266. 3  app/libs/Addons/PHPTAL/tests/output/i18n-name-05.html
  267. 8  app/libs/Addons/PHPTAL/tests/output/i18n-name-06.html
  268. 1  app/libs/Addons/PHPTAL/tests/output/i18n-translate-01.html
  269. 1  app/libs/Addons/PHPTAL/tests/output/i18n-translate-02.html
  270. 4  app/libs/Addons/PHPTAL/tests/output/metal-macro.01.html
  271. 6  app/libs/Addons/PHPTAL/tests/output/metal-macro.02.html
  272. 8  app/libs/Addons/PHPTAL/tests/output/metal-macro.03.html
  273. 3  app/libs/Addons/PHPTAL/tests/output/metal-macro.04.html
  274. 4  app/libs/Addons/PHPTAL/tests/output/metal-macro.05.html
  275. 4  app/libs/Addons/PHPTAL/tests/output/metal-macro.06.html
  276. 1  app/libs/Addons/PHPTAL/tests/output/metal-macro.07.html
  277. 4  app/libs/Addons/PHPTAL/tests/output/metal-slot.01.html
  278. 5  app/libs/Addons/PHPTAL/tests/output/metal-slot.02.html
  279. 3  app/libs/Addons/PHPTAL/tests/output/metal-slot.03.html
  280. 4  app/libs/Addons/PHPTAL/tests/output/metal-slot.04.html
  281. 5  app/libs/Addons/PHPTAL/tests/output/namespaces.01.html
  282. 11  app/libs/Addons/PHPTAL/tests/output/namespaces.02.html
  283. 7  app/libs/Addons/PHPTAL/tests/output/namespaces.03.html
  284. 27  app/libs/Addons/PHPTAL/tests/output/old-03.html
  285. 12  app/libs/Addons/PHPTAL/tests/output/old-06.html
  286. 11  app/libs/Addons/PHPTAL/tests/output/old-08.html
  287. 4  app/libs/Addons/PHPTAL/tests/output/old-11.html
  288. 8  app/libs/Addons/PHPTAL/tests/output/old-12.html
  289. 36  app/libs/Addons/PHPTAL/tests/output/old-13.html
  290. 12  app/libs/Addons/PHPTAL/tests/output/old-15.html
  291. 41  app/libs/Addons/PHPTAL/tests/output/old-16.html
  292. 4  app/libs/Addons/PHPTAL/tests/output/old-17.html
  293. 7  app/libs/Addons/PHPTAL/tests/output/old-19.html
  294. 4  app/libs/Addons/PHPTAL/tests/output/old-20.html
  295. 18  app/libs/Addons/PHPTAL/tests/output/old-21.html
  296. 4  app/libs/Addons/PHPTAL/tests/output/old-23.html
  297. 8  app/libs/Addons/PHPTAL/tests/output/old-29.html
  298. 5  app/libs/Addons/PHPTAL/tests/output/old-30.html
  299. 1  app/libs/Addons/PHPTAL/tests/output/old-31.html
  300. 23  app/libs/Addons/PHPTAL/tests/output/old-32.html
  301. 5  app/libs/Addons/PHPTAL/tests/output/overloading-01.html
  302. 4  app/libs/Addons/PHPTAL/tests/output/php-mode.01.xml
  303. 3  app/libs/Addons/PHPTAL/tests/output/php-mode.02.xml
  304. 6  app/libs/Addons/PHPTAL/tests/output/php.html
  305. 8  app/libs/Addons/PHPTAL/tests/output/phptal.02.html
63  app/libs/Addons/PHPTAL/tests/ArrayOverloadTest.php
... ...
@@ -1,63 +0,0 @@
1  
-<?php
2  
-/**
3  
- * PHPTAL templating engine
4  
- *
5  
- * PHP Version 5
6  
- *
7  
- * @category HTML
8  
- * @package  PHPTAL
9  
- * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10  
- * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11  
- * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12  
- * @version  SVN: $Id: ArrayOverloadTest.php 579 2009-04-25 23:14:46Z kornel $
13  
- * @link     http://phptal.org/
14  
- */
15  
-
16  
-class MyArray implements ArrayAccess
17  
-{
18  
-    public function push($value) {
19  
-        $this->_values[] =  $value;
20  
-    }
21  
-
22  
-    public function offsetGet($index){
23  
-        return $this->_values[$index];
24  
-    }
25  
-
26  
-    public function offsetSet($index, $value){
27  
-        $this->_values[$index] = $value;
28  
-    }
29  
-
30  
-    public function offsetExists($of){
31  
-        return isset($this->_values[$of]);
32  
-    }
33  
-
34  
-    public function offsetUnset($of){
35  
-        unset($this->_values[$of]);
36  
-    }
37  
-
38  
-    private $_values = array();
39  
-}
40  
-
41  
-require_once dirname(__FILE__)."/config.php";
42  
-
43  
-class ArrayOverloadTest extends PHPTAL_TestCase
44  
-{
45  
-    function testIt()
46  
-    {
47  
-        $arr = new MyArray();
48  
-        for ($i=0; $i<20; $i++){
49  
-            $val = new StdClass;
50  
-            $val->foo = "foo value $i";
51  
-            $arr->push($val);
52  
-        }
53  
-
54  
-        $tpl = $this->newPHPTAL('input/array-overload.01.html');
55  
-        $tpl->myobject = $arr;
56  
-        $res = $tpl->execute();
57  
-        $exp = trim_file('output/array-overload.01.html');
58  
-        $res = trim_string($res);
59  
-        $this->assertEquals($exp, $res);
60  
-    }
61  
-}
62  
-
63  
-
151  app/libs/Addons/PHPTAL/tests/AttributesInterpolationTest.php
... ...
@@ -1,151 +0,0 @@
1  
-<?php
2  
-/**
3  
- * PHPTAL templating engine
4  
- *
5  
- * PHP Version 5
6  
- *
7  
- * @category HTML
8  
- * @package  PHPTAL
9  
- * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10  
- * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11  
- * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12  
- * @version  SVN: $Id: AttributesInterpolationTest.php 579 2009-04-25 23:14:46Z kornel $
13  
- * @link     http://phptal.org/
14  
- */
15  
-
16  
-require_once dirname(__FILE__)."/config.php";
17  
-
18  
-class AttributesInterpolationTest extends PHPTAL_TestCase
19  
-{
20  
-    public function testInterpol()
21  
-    {
22  
-        $src = <<<EOT
23  
-<span title="\${foo}"></span>
24  
-EOT;
25  
-        $exp = <<<EOT
26  
-<span title="foo value"></span>
27  
-EOT;
28  
-        $tpl = $this->newPHPTAL();
29  
-        $tpl->setSource($src);
30  
-        $tpl->foo = 'foo value';
31  
-        $res = $tpl->execute();
32  
-        $this->assertEquals($exp, $res);
33  
-    }
34  
-
35  
-    public function testInterpol2()
36  
-    {
37  
-        $src = <<<EOT
38  
-<span title="\${foo2} x \${structure foo} y \${foo}\${structure foo2}"></span><img/>
39  
-EOT;
40  
-        $exp = <<<EOT
41  
-<span title="{foo2 &lt;img /&gt;} x foo value y foo value{foo2 <img />}"></span><img/>
42  
-EOT;
43  
-        $tpl = $this->newPHPTAL();
44  
-        $tpl->setSource($src);
45  
-        $tpl->foo = 'foo value';
46  
-        $tpl->foo2 = '{foo2 <img />}';
47  
-        $res = $tpl->execute();
48  
-        $this->assertEquals($exp, $res);
49  
-    }
50  
-
51  
-    public function testInterpol3()
52  
-    {
53  
-        $src = <<<EOT
54  
-<span title="\${foo}\${foo}1"></span>
55  
-<span tal:attributes="title string:\${foo}\${foo}2"></span>
56  
-<span tal:attributes="title '\${foo}\${foo}3'"></span>
57  
-EOT;
58  
-        $exp = <<<EOT
59  
-<span title="foo valuefoo value1"></span>
60  
-<span title="foo valuefoo value2"></span>
61  
-<span title="foo valuefoo value3"></span>
62  
-EOT;
63  
-        $tpl = $this->newPHPTAL();
64  
-        $tpl->setSource($src);
65  
-        $tpl->foo = 'foo value';
66  
-        $res = $tpl->execute();
67  
-        $this->assertEquals($exp, $res);
68  
-    }
69  
-
70  
-    public function testInterpol3a()
71  
-    {
72  
-        $src = <<<EOT
73  
-<span tal:attributes="title php:'\${foo}\${foo}'"></span>
74  
-<span title="<?php echo '\${foo}\${foo}' ?>"></span>
75  
-EOT;
76  
-    $exp = <<<EOT
77  
-<span title="\${foo}\${foo}"></span>
78  
-<span title="\${foo}\${foo}"></span>
79  
-EOT;
80  
-        $tpl = $this->newPHPTAL();
81  
-        $tpl->setSource($src);
82  
-        $tpl->foo = 'foo value';
83  
-        $res = $tpl->execute();
84  
-        $this->assertEquals($exp, $res);
85  
-    }
86  
-
87  
-    public function testNoInterpol()
88  
-    {
89  
-        $src = <<<EOT
90  
-<span title="$\${foo}"></span>
91  
-EOT;
92  
-        $exp = <<<EOT
93  
-<span title="\${foo}"></span>
94  
-EOT;
95  
-        $tpl = $this->newPHPTAL();
96  
-        $tpl->setSource($src);
97  
-        $tpl->foo = 'foo value';
98  
-        $res = $tpl->execute();
99  
-        $this->assertEquals($exp, $res);
100  
-    }
101  
-
102  
-    public function testNoInterpolAdv()
103  
-    {
104  
-        $src = <<<EOT
105  
-<span title="$$\${foo}"></span>
106  
-EOT;
107  
-        $exp = <<<EOT
108  
-<span title="$\${foo}"></span>
109  
-EOT;
110  
-        $tpl = $this->newPHPTAL();
111  
-        $tpl->setSource($src);
112  
-        $tpl->foo = 'foo value';
113  
-        $res = $tpl->execute();
114  
-        $this->assertEquals($exp, $res);
115  
-    }
116  
-
117  
-
118  
-    public function testPHPBlock()
119  
-    {
120  
-        $tpl = $this->newPHPTAL();
121  
-        $tpl->setSource('<p test=\'te&amp;st<?php echo "<x>"; ?>test<?php print("&amp;") ?>test\'/>');
122  
-        $this->assertEquals('<p test="te&amp;st<x>test&amp;test"></p>', $tpl->execute());
123  
-}
124  
-
125  
-    public function testPHPBlockShort()
126  
-    {
127  
-        ini_set('short_open_tag',1);
128  
-        if (!ini_get('short_open_tag')) $this->markTestSkipped("PHP is buggy");
129  
-
130  
-        $tpl = $this->newPHPTAL();
131  
-        $tpl->setSource('<p test=\'te&amp;st<? print("<x>"); ?>test<?= "&amp;" ?>test\'/>');
132  
-        $this->assertEquals('<p test="te&amp;st<x>test&amp;test"></p>', $tpl->execute());
133  
-        ini_restore('short_open_tag');
134  
-    }
135  
-
136  
-    public function testPHPBlockNoShort()
137  
-    {
138  
-        ini_set('short_open_tag', 0);
139  
-        if (ini_get('short_open_tag')) $this->markTestSkipped("PHP is buggy");
140  
-
141  
-        $tpl = $this->newPHPTAL();
142  
-        $tpl->setSource('<p test=\'te&amp;st<? print("<x>"); ?>test<?= "&amp;" ?>test\'/>');
143  
-        try
144  
-        {
145  
-            $this->assertEquals(trim_string('<p test="te&amp;st&lt;? print("&lt;x&gt;"); ?&gt;test&lt;?= "&amp;" ?&gt;test"></p>'), trim_string($tpl->execute()));
146  
-        }
147  
-        catch(PHPTAL_ParserException $e) {/* xml ill-formedness error is ok too */}
148  
-        ini_restore('short_open_tag');
149  
-    }
150  
-}
151  
-
56  app/libs/Addons/PHPTAL/tests/BlockTest.php
... ...
@@ -1,56 +0,0 @@
1  
-<?php
2  
-/**
3  
- * PHPTAL templating engine
4  
- *
5  
- * PHP Version 5
6  
- *
7  
- * @category HTML
8  
- * @package  PHPTAL
9  
- * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10  
- * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11  
- * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12  
- * @version  SVN: $Id: BlockTest.php 579 2009-04-25 23:14:46Z kornel $
13  
- * @link     http://phptal.org/
14  
- */
15  
-
16  
-require_once dirname(__FILE__)."/config.php";
17  
-
18  
-class BlockTest extends PHPTAL_TestCase
19  
-{
20  
-	function testTalBlock(){
21  
-		$t = $this->newPHPTAL();
22  
-		$t->setSource('<tal:block content="string:content"></tal:block>');
23  
-		$res = $t->execute();
24  
-		$this->assertEquals('content', $res);
25  
-	}
26  
-
27  
-	function testMetalBlock(){
28  
-		$t = $this->newPHPTAL();
29  
-		$t->setSource('<metal:block>foo</metal:block>');
30  
-		$res = $t->execute();
31  
-		$this->assertEquals('foo', $res);
32  
-	}
33  
-
34  
-	function testSomeNamespaceBlock()
35  
-	{
36  
-		$t = $this->newPHPTAL();
37  
-		$t->setSource('<foo:block xmlns:foo="http://phptal.example.com">foo</foo:block>');
38  
-		$res = $t->execute();
39  
-		$this->assertEquals('<foo:block xmlns:foo="http://phptal.example.com">foo</foo:block>', $res);
40  
-	}
41  
-	
42  
-	/**
43  
-     * @expectedException PHPTAL_ParserException
44  
-     */
45  
-	function testInvalidNamespaceBlock()
46  
-	{
47  
-		$t = $this->newPHPTAL();
48  
-				
49  
-		$this->setExpectedException('PHPTAL_Exception');
50  
-		
51  
-		$t->setSource('<foo:block>foo</foo:block>');		
52  
-		$res = $t->execute();		
53  
-	}	
54  
-}
55  
-
56  
-
158  app/libs/Addons/PHPTAL/tests/CodeCacheTest.php
... ...
@@ -1,158 +0,0 @@
1  
-<?php
2  
-/**
3  
- * PHPTAL templating engine
4  
- *
5  
- * PHP Version 5
6  
- *
7  
- * @category HTML
8  
- * @package  PHPTAL
9  
- * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10  
- * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11  
- * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12  
- * @version  SVN: $Id: CodeCacheTest.php 605 2009-05-03 02:50:26Z kornel $
13  
- * @link     http://phptal.org/
14  
- */
15  
-
16  
-require_once dirname(__FILE__)."/config.php";
17  
-
18  
-class PHPTAL_CodeCacheTest extends PHPTAL
19  
-{
20  
-    public $testHasParsed = false;
21  
-    function parse()
22  
-    {
23  
-        $this->testHasParsed = true;
24  
-        return parent::parse();
25  
-    }
26  
-}
27  
-
28  
-class CodeCacheTest extends PHPTAL_TestCase
29  
-{
30  
-    private $phptal;
31  
-    private $codeDestination;
32  
-
33  
-    private function resetPHPTAL()
34  
-    {
35  
-        $this->phptal = new PHPTAL_CodeCacheTest();
36  
-        $this->phptal->setForceReparse(false);
37  
-        $this->assertFalse($this->phptal->getForceReparse());
38  
-
39  
-        if (function_exists('sys_get_temp_dir')) {
40  
-            $tmpdirpath = sys_get_temp_dir().DIRECTORY_SEPARATOR.'temp_output';
41  
-            if (!is_dir($tmpdirpath)) mkdir($tmpdirpath);
42  
-        }
43  
-        else $this->markTestSkipped("Newer PHP needed");
44  
-        
45  
-        $this->assertTrue(is_dir($tmpdirpath));
46  
-        $this->assertTrue(is_writable($tmpdirpath));
47  
-
48  
-        $this->phptal->setPhpCodeDestination($tmpdirpath);
49  
-        $this->codeDestination = $this->phptal->getPhpCodeDestination();
50  
-    }
51  
-
52  
-    private function clearCache()
53  
-    {
54  
-        $this->assertContains(DIRECTORY_SEPARATOR.'temp_output'.DIRECTORY_SEPARATOR,$this->codeDestination);
55  
-        foreach (glob($this->codeDestination.'tpl_*') as $tpl) {
56  
-            $this->assertTrue(unlink($tpl), "Delete $tpl");
57  
-        }
58  
-    }
59  
-
60  
-    function setUp()
61  
-    {
62  
-        parent::setUp();
63  
-        $this->resetPHPTAL();
64  
-        $this->clearCache();
65  
-    }
66  
-
67  
-    function tearDown()
68  
-    {
69  
-        $this->clearCache();
70  
-    }
71  
-
72  
-    function testNoParseOnReexecution()
73  
-    {
74  
-        $this->phptal->setSource('<p>hello</p>');
75  
-        $this->phptal->execute();
76  
-
77  
-        $this->assertTrue($this->phptal->testHasParsed, "Initial parse");
78  
-
79  
-        $this->phptal->testHasParsed = false;
80  
-        $this->phptal->execute();
81  
-
82  
-        $this->assertFalse($this->phptal->testHasParsed, "No reparse");
83  
-    }
84  
-
85  
-    function testNoParseOnReset()
86  
-    {
87  
-        $this->phptal->setSource('<p>hello2</p>');
88  
-        $this->phptal->execute();
89  
-
90  
-        $this->assertTrue($this->phptal->testHasParsed, "Initial parse");
91  
-
92  
-        $this->resetPHPTAL();
93  
-
94  
-        $this->phptal->setSource('<p>hello2</p>');
95  
-        $this->phptal->execute();
96  
-
97  
-        $this->assertFalse($this->phptal->testHasParsed, "No reparse");
98  
-    }
99  
-
100  
-    function testReparseAfterTouch()
101  
-    {
102  
-        if (!is_writable('input/code-cache-01.html')) $this->markTestSkipped();
103  
-        
104  
-        $time1 = filemtime('input/code-cache-01.html');
105  
-        touch('input/code-cache-01.html', time());
106  
-        clearstatcache();
107  
-        $time2 = filemtime('input/code-cache-01.html');
108  
-        $this->assertNotEquals($time1,$time2,"touch() must work");
109  
-
110  
-
111  
-        $this->phptal->setTemplate('input/code-cache-01.html');
112  
-        $this->phptal->execute();
113  
-        $this->assertTrue($this->phptal->testHasParsed, "Initial parse");
114  
-
115  
-        $this->resetPHPTAL();
116  
-
117  
-        touch('input/code-cache-01.html', $time1);
118  
-        clearstatcache();
119  
-
120  
-        $this->phptal->setTemplate('input/code-cache-01.html');
121  
-        $this->phptal->execute();
122  
-
123  
-        $this->assertTrue($this->phptal->testHasParsed, "Reparse");
124  
-    }
125  
-
126  
-    function testGarbageRemoval()
127  
-    {
128  
-        $src = '<test uniq="'.time().mt_rand().'" phptal:cache="1d" />';
129  
-        $this->phptal->setSource($src);
130  
-        $this->phptal->execute();
131  
-
132  
-        $this->assertTrue($this->phptal->testHasParsed, "Parse");
133  
-
134  
-        $this->phptal->testHasParsed = false;
135  
-        $this->phptal->setSource($src);
136  
-        $this->phptal->execute();
137  
-
138  
-        $this->assertFalse($this->phptal->testHasParsed, "Reparse!?");
139  
-
140  
-        $files = glob($this->codeDestination.'*');
141  
-        $this->assertEquals(2,count($files)); // one for template, one for cache
142  
-        foreach($files as $file) {
143  
-            $this->assertFileExists($file);
144  
-            touch($file, time() - 3600*24*100);
145  
-        }
146  
-        clearstatcache();
147  
-
148  
-        $this->phptal->cleanUpGarbage(); // should delete all files
149  
-
150  
-        clearstatcache();
151  
-
152  
-        // can't check for reparse, because PHPTAL uses function_exists() as a shortcut!
153  
-        foreach($files as $file) {
154  
-            $this->assertFileNotExists($file);
155  
-        }
156  
-
157  
-    }
158  
-}
55  app/libs/Addons/PHPTAL/tests/CommentFilterTest.php
... ...
@@ -1,55 +0,0 @@
1  
-<?php
2  
-/**
3  
- * PHPTAL templating engine
4  
- *
5  
- * PHP Version 5
6  
- *
7  
- * @category HTML
8  
- * @package  PHPTAL
9  
- * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10  
- * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11  
- * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12  
- * @version  SVN: $Id: CommentFilterTest.php 760 2009-10-25 00:17:59Z kornel $
13  
- * @link     http://phptal.org/
14  
- */
15  
-
16  
-require_once dirname(__FILE__)."/config.php";
17  
-
18  
-PHPTAL::setIncludePath();
19  
-require_once 'PHPTAL/PreFilter.php';
20  
-require_once 'PHPTAL/PreFilter/StripComments.php';
21  
-PHPTAL::restoreIncludePath();
22  
-
23  
-class CommentFilterTest extends PHPTAL_TestCase
24  
-{
25  
-	function testStripComments() {
26  
-		$t = $this->newPHPTAL('input/comment-filter-01.html');
27  
-		$t->addPreFilter(new PHPTAL_PreFilter_StripComments());
28  
-		$res = $t->execute();
29  
-		$res = trim_string($res);
30  
-		$exp = trim_file('output/comment-filter-01.html');
31  
-		$this->assertEquals($exp,$res);
32  
-	}
33  
-
34  
-	function testPreservesScript() {
35  
-		$t = $this->newPHPTAL();
36  
-		$t->addPreFilter(new PHPTAL_PreFilter_StripComments());
37  
-		$t->setSource('<script>//<!--
38  
-		alert("1990s called"); /* && */
39  
-		//--></script>');
40  
-		
41  
-		$this->assertEquals(trim_string('<script>//<![CDATA[
42  
-		alert("1990s called"); /* && */
43  
-		//]]></script>'),trim_string($t->execute()));
44  
-	}
45  
-
46  
-	function testNamespaceAware() {
47  
-		$t = $this->newPHPTAL();
48  
-		$t->addPreFilter(new PHPTAL_PreFilter_StripComments());
49  
-		$t->setSource('<script xmlns="http://example.com/foo">//<!--
50  
-		alert("1990s called"); /* && */
51  
-		//--></script>');
52  
-		
53  
-		$this->assertEquals(trim_string('<script xmlns="http://example.com/foo">//</script>'),trim_string($t->execute()));
54  
-	}
55  
-}
94  app/libs/Addons/PHPTAL/tests/CommentTest.php
... ...
@@ -1,94 +0,0 @@
1  
-<?php
2  
-/**
3  
- * PHPTAL templating engine
4  
- *
5  
- * PHP Version 5
6  
- *
7  
- * @category HTML
8  
- * @package  PHPTAL
9  
- * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10  
- * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11  
- * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12  
- * @version  SVN: $Id: CommentTest.php 750 2009-10-24 22:03:17Z kornel $
13  
- * @link     http://phptal.org/
14  
- */
15  
-
16  
-require_once dirname(__FILE__)."/config.php";
17  
-
18  
-class CommentTest extends PHPTAL_TestCase
19  
-{
20  
-    function testSimple()
21  
-    {
22  
-        $source = '<html><!-- \${variable} --></html>';
23  
-        $tpl = $this->newPHPTAL();
24  
-        $tpl->setSource($source);
25  
-        $res = $tpl->execute();
26  
-        $this->assertEquals($source, $res);
27  
-    }
28  
-
29  
-    function testNoEntities()
30  
-    {
31  
-        $source = '<html><!-- <foo> --></html>';
32  
-        $tpl = $this->newPHPTAL();
33  
-        $tpl->setSource($source, __FILE__);
34  
-        $res = $tpl->execute();
35  
-        $this->assertEquals($source, $res);
36  
-    }
37  
-
38  
-    function testShortComments()
39  
-    {
40  
-        $source = '<html><!--><--></html>';
41  
-        $tpl = $this->newPHPTAL();
42  
-        $tpl->setSource($source);
43  
-        $res = $tpl->execute();
44  
-        $this->assertEquals($source, $res);
45  
-    }
46  
-
47  
-    /**
48  
-     * @expectedException PHPTAL_ParserException
49  
-     */
50  
-    function testNestedComments()
51  
-    {
52  
-        $source = '<html><!--<!--<!--></html>';
53  
-        $tpl = $this->newPHPTAL();
54  
-        $tpl->setSource($source);
55  
-        $res = $tpl->execute();
56  
-        $this->fail("Ill-formed comment accepted");
57  
-    }
58  
-
59  
-    /**
60  
-     * @expectedException PHPTAL_ParserException
61  
-     */
62  
-    function testDashedComment()
63  
-    {
64  
-        $source = '<html><!--- XML hates you ---></html>';
65  
-        $tpl = $this->newPHPTAL();
66  
-        $tpl->setSource($source);
67  
-        $res = $tpl->execute();
68  
-        $this->fail("Ill-formed comment accepted");
69  
-    }
70  
-
71  
-
72  
-    function testSkippedComments()
73  
-    {
74  
-        $source = '<html><!--!
75  
-        removed --><!-- left --><!-- !removed --></html>';
76  
-        $tpl = $this->newPHPTAL();
77  
-        $tpl->setSource($source);
78  
-        $res = $tpl->execute();
79  
-        $this->assertEquals('<html><!-- left --></html>', $res);
80  
-    }
81  
-    
82  
-    function testCStyleComments()
83  
-    {
84  
-        $tpl = $this->newPHPTAL();
85  
-        $src = '<script><!--
86  
-            // comment
87  
-            /* comment <tag> */
88  
-            // comment
89  
-            --></script>';
90  
-        $tpl->setSource($src);            
91  
-        $this->assertEquals($src,$tpl->execute());
92  
-    }
93  
-}
94  
-
37  app/libs/Addons/PHPTAL/tests/ContentEncodingTest.php
... ...
@@ -1,37 +0,0 @@
1  
-<?php
2  
-/**
3  
- * PHPTAL templating engine
4  
- *
5  
- * PHP Version 5
6  
- *
7  
- * @category HTML
8  
- * @package  PHPTAL
9  
- * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10  
- * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11  
- * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12  
- * @version  SVN: $Id: ContentEncodingTest.php 579 2009-04-25 23:14:46Z kornel $
13  
- * @link     http://phptal.org/
14  
- */
15  
-
16  
-require_once dirname(__FILE__)."/config.php";
17  
-
18  
-class ContentEncodingTest extends PHPTAL_TestCase
19  
-{
20  
-    function testSimple()
21  
-    {
22  
-        $tpl = $this->newPHPTAL('input/content-encoding.xml');
23  
-        $res = $tpl->execute();
24  
-        $exp = trim_file('output/content-encoding.xml');
25  
-        $res = trim_string($res);
26  
-        $this->assertEquals($exp, $res);
27  
-    }
28  
-
29  
-    function testEchoArray()
30  
-    {
31  
-        $p = $this->newPHPTAL();
32  
-        $p->setSource('<p tal:content="foo"/>');
33  
-        $p->foo = array('bar'=>'a&aa','<bbb>',null,-1);
34  
-        $this->assertEquals('<p>a&amp;aa, &lt;bbb&gt;, , -1</p>',$p->execute());
35  
-    }
36  
-}
37  
-
164  app/libs/Addons/PHPTAL/tests/ContentInterpolationTest.php
... ...
@@ -1,164 +0,0 @@
1  
-<?php
2  
-/**
3  
- * PHPTAL templating engine
4  
- *
5  
- * PHP Version 5
6  
- *
7  
- * @category HTML
8  
- * @package  PHPTAL
9  
- * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10  
- * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11  
- * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12  
- * @version  SVN: $Id: ContentInterpolationTest.php 579 2009-04-25 23:14:46Z kornel $
13  
- * @link     http://phptal.org/
14  
- */
15  
-
16  
-require_once dirname(__FILE__)."/config.php";
17  
-
18  
-class ContentInterpolationTest extends PHPTAL_TestCase
19  
-{
20  
-    public function testInterpol()
21  
-    {
22  
-        $src = <<<EOT
23  
-<span>\${foo}</span>
24  
-EOT;
25  
-        $exp = <<<EOT
26  
-<span>foo value</span>
27  
-EOT;
28  
-        $tpl = $this->newPHPTAL();
29  
-        $tpl->setSource($src);
30  
-        $tpl->foo = 'foo value';
31  
-        $res = $tpl->execute();
32  
-        $this->assertEquals($exp, $res);
33  
-    }
34  
-
35  
-    public function testInterpol2()
36  
-    {
37  
-        $src = <<<EOT
38  
-<span>\${foo2} x \${structure foo} y \${foo}\${structure foo2}</span><img/>
39  
-EOT;
40  
-        $exp = <<<EOT
41  
-<span>{foo2 &lt;img /&gt;} x foo value y foo value{foo2 <img />}</span><img/>
42  
-EOT;
43  
-        $tpl = $this->newPHPTAL();
44  
-        $tpl->setSource($src);
45  
-        $tpl->foo = 'foo value';
46  
-        $tpl->foo2 = '{foo2 <img />}';
47  
-        $res = $tpl->execute();
48  
-        $this->assertEquals($exp, $res);
49  
-    }
50  
-
51  
-    public function testInterpol3()
52  
-    {
53  
-        $src = <<<EOT
54  
-<span>\${foo}\${foo}</span>
55  
-EOT;
56  
-        $exp = <<<EOT
57  
-<span>foo valuefoo value</span>
58  
-EOT;
59  
-        $tpl = $this->newPHPTAL();
60  
-        $tpl->setSource($src);
61  
-        $tpl->foo = 'foo value';
62  
-        $res = $tpl->execute();
63  
-        $this->assertEquals($exp, $res);
64  
-    }
65  
-
66  
-    public function testNoInterpol()
67  
-    {
68  
-        $src = <<<EOT
69  
-<span>$\${foo}</span>
70  
-EOT;
71  
-        $exp = <<<EOT
72  
-<span>\${foo}</span>
73  
-EOT;
74  
-        $tpl = $this->newPHPTAL();
75  
-        $tpl->setSource($src);
76  
-        $tpl->foo = 'foo value';
77  
-        $res = $tpl->execute();
78  
-        $this->assertEquals($exp, $res);
79  
-    }
80  
-
81  
-    public function testNoInterpolAdv()
82  
-    {
83  
-        $src = <<<EOT
84  
-<span>$$\${foo}</span>
85  
-EOT;
86  
-        $exp = <<<EOT
87  
-<span>$\${foo}</span>
88  
-EOT;
89  
-        $tpl = $this->newPHPTAL();
90  
-        $tpl->setSource($src);
91  
-        $tpl->foo = 'foo value';
92  
-        $res = $tpl->execute();
93  
-        $this->assertEquals($exp, $res);
94  
-    }
95  
-
96  
-    public function testPHPBlock()
97  
-    {
98  
-        $tpl = $this->newPHPTAL();
99  
-        $tpl->setSource('<p>test<?php echo "<x>"; ?>test<?php print("&amp;") ?>test</p>');
100  
-        $this->assertEquals('<p>test<x>test&amp;test</p>', $tpl->execute());
101  
-}
102  
-
103  
-    public function testPHPBlockShort()
104  
-    {
105  
-        ini_set('short_open_tag',1);
106  
-        if (!ini_get('short_open_tag')) $this->markTestSkipped("PHP is buggy");
107  
-
108  
-        $tpl = $this->newPHPTAL();
109  
-        $tpl->setSource('<p>test<? print("<x>"); ?>test<?= "&amp;" ?>test</p>');
110  
-        $this->assertEquals('<p>test<x>test&amp;test</p>', $tpl->execute());
111  
-        ini_restore('short_open_tag');
112  
-    }
113  
-
114  
-    public function testPHPBlockNoShort()
115  
-    {
116  
-        ini_set('short_open_tag', 0);
117  
-        if (ini_get('short_open_tag')) $this->markTestSkipped("PHP is buggy");
118  
-
119  
-        $tpl = $this->newPHPTAL();
120  
-        $tpl->setSource('<p>test<? print("<x>"); ?>test<?= "&amp;" ?>test</p>');
121  
-        try
122  
-        {
123  
-            // unlike attributes, this isn't going to be escaped, because it gets parsed as a real processing instruction
124  
-            $this->assertEquals('<p>test<? print("<x>"); ?>test<?= "&amp;" ?>test</p>', $tpl->execute());
125  
-        }
126  
-        catch(PHPTAL_ParserException $e) {/* xml ill-formedness error is ok too */}
127  
-        ini_restore('short_open_tag');
128  
-    }
129  
-
130  
-    /**
131  
-     * @expectedException PHPTAL_VariableNotFoundException
132  
-     */
133  
-    function testErrorsThrow()
134  
-    {
135  
-        $tpl = $this->newPHPTAL();
136  
-        $tpl->setSource('<p>${error}</p>');
137  
-        $tpl->execute();
138  
-    }
139  
-
140  
-    /**
141  
-     * @expectedException PHPTAL_VariableNotFoundException
142  
-     */
143  
-    function testErrorsThrow2()
144  
-    {
145  
-        $tpl = $this->newPHPTAL();
146  
-        $tpl->setSource('<p>${error | error}</p>');
147  
-        $tpl->execute();
148  
-    }
149  
-
150  
-    function testErrorsSilenced()
151  
-    {
152  
-        $tpl = $this->newPHPTAL();
153  
-        $tpl->setSource('<p>${error | nothing}</p>');
154  
-        $this->assertEquals('<p></p>',$tpl->execute());
155  
-    }
156  
-
157  
-    function testZeroIsNotEmpty()
158  
-    {
159  
-        $tpl = $this->newPHPTAL();
160  
-        $tpl->zero = '0';
161  
-        $tpl->setSource('<p>${zero | error}</p>');
162  
-        $this->assertEquals('<p>0</p>',$tpl->execute());
163  
-    }
164  
-}
84  app/libs/Addons/PHPTAL/tests/DoctypeTest.php
... ...
@@ -1,84 +0,0 @@
1  
-<?php
2  
-/**
3  
- * PHPTAL templating engine
4  
- *
5  
- * PHP Version 5
6  
- *
7  
- * @category HTML
8  
- * @package  PHPTAL
9  
- * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10  
- * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11  
- * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12  
- * @version  SVN: $Id: DoctypeTest.php 707 2009-09-02 10:15:41Z kornel $
13  
- * @link     http://phptal.org/
14  
- */
15  
-
16  
-require_once dirname(__FILE__)."/config.php";
17  
-
18  
-class DoctypeTest extends PHPTAL_TestCase
19  
-{
20  
-	function testSimple()
21  
-	{
22  
-		$tpl = $this->newPHPTAL('input/doctype.01.html');
23  
-		$res = $tpl->execute();
24  
-		$res = trim_string($res);
25  
-		$exp = trim_file('output/doctype.01.html');
26  
-		$this->assertEquals($exp, $res);
27  
-	}
28  
-
29  
-	function testMacro()
30  
-	{
31  
-		$tpl = $this->newPHPTAL('input/doctype.02.user.html');
32  
-		$res = $tpl->execute();
33  
-		$res = trim_string($res);
34  
-		$exp = trim_file('output/doctype.02.html');
35  
-		$this->assertEquals($exp, $res);
36  
-	}
37  
-
38  
-	function testDeepMacro()
39  
-	{
40  
-		$tpl = $this->newPHPTAL('input/doctype.03.html');
41  
-		$res = $tpl->execute();
42  
-		$res = trim_string($res);
43  
-		$exp = trim_file('output/doctype.03.html');
44  
-		$this->assertEquals($exp, $res);
45  
-	}
46  
-
47  
-	function testDtdInline()
48  
-	{
49  
-		$tpl = $this->newPHPTAL('input/doctype.04.html');
50  
-		$res = $tpl->execute();
51  
-		$res = trim_string($res);
52  
-		$exp = trim_file('output/doctype.04.html');
53  
-		$this->assertEquals($exp, $res);
54  
-	}
55  
-	
56  
-	function testClearedOnReexecution()
57  
-	{
58  
-	    $tpl = $this->newPHPTAL();
59  
-	    $tpl->setSource('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><whatever/>');
60  
-	    
61  
-	    $this->assertContains("DOCTYPE html PUBLIC",$tpl->execute());
62  
-	    $this->assertContains("DOCTYPE html PUBLIC",$tpl->execute());        
63  
-	    
64  
-	    $tpl->setSource('<whatever/>');	    
65  
-
66  
-	    $this->assertNotContains("DOCTYPE html PUBLIC",$tpl->execute());
67  
-	    $this->assertNotContains("DOCTYPE html PUBLIC",$tpl->execute());        
68  
-    }
69  
-    
70  
-    /**
71  
-     * this is pretty crazy case of PHPTAL being reused while template is still being executed
72  
-     */
73  
-    function testClearedOnNestedReexecution()
74  
-	{
75  
-	    $tpl = $this->newPHPTAL();
76  
-	    $tpl->tpl = $tpl;
77  
-
78  
-	    $tpl->setSource('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
79  
-	    <hack tal:define="hack php:tpl.setSource(&quot;&lt;hacked/&gt;&quot;)" tal:content="structure hack/execute"/>');
80  
-	    
81  
-	    $this->assertEquals(trim_string('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><hack><hacked></hacked></hack>'),
82  
-	                        trim_string($tpl->execute()));
83  
-    }
84  
-}
129  app/libs/Addons/PHPTAL/tests/DomTest.php
... ...
@@ -1,129 +0,0 @@
1  
-<?php
2  
-/**
3  
- * PHPTAL templating engine
4  
- *
5  
- * PHP Version 5
6  
- *
7  
- * @category HTML
8  
- * @package  PHPTAL
9  
- * @author   Laurent Bedubourg <lbedubourg@motion-twin.com>
10  
- * @author   Kornel Lesiński <kornel@aardvarkmedia.co.uk>
11  
- * @license  http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
12  
- * @version  SVN: $Id: $
13  
- * @link     http://phptal.org/
14  
- */
15  
-
16  
-require_once dirname(__FILE__)."/config.php";
17  
-
18  
-PHPTAL::setIncludePath();
19  
-require_once 'PHPTAL/Dom/DocumentBuilder.php';
20  
-PHPTAL::restoreIncludePath();
21  
-
22  
-class DOMTest extends PHPTAL_TestCase
23  
-{
24  
-    private function newElement($name = 'foo',$ns = '')
25  
-    {
26  
-        $xmlns = new PHPTAL_Dom_XmlnsState(array(),'');
27  
-        return new PHPTAL_Dom_Element($name,$ns,array(),$xmlns);
28  
-    }
29  
-    
30  
-    function testAppendChild()
31  
-    {
32  
-        $el1 = $this->newElement();
33  
-        $el2 = $this->newElement();
34  
-        
35  
-        $this->assertType('array',$el1->childNodes);
36  
-        $this->assertNull($el2->parentNode);
37  
-        
38  
-        $el1->appendChild($el2);
39  
-        $this->assertNull($el1->parentNode);
40  
-        $this->assertSame($el1,$el2->parentNode);
41  
-        $this->assertEquals(1,count($el1->childNodes));
42  
-        $this->assertTrue(isset($el1->childNodes[0]));
43  
-        $this->assertSame($el2,$el1->childNodes[0]);
44  
-    }
45  
-    
46  
-    function testAppendChildChangesParent()
47  
-    {
48  
-        $el1 = $this->newElement();
49  
-        $el2 = $this->newElement();
50  
-
51  
-        $ch = $this->newElement();
52  
-        
53  
-        $el1->appendChild($ch);
54  
-
55  
-        $this->assertTrue(isset($el1->childNodes[0]));
56  
-        $this->assertSame($ch,$el1->childNodes[0]);
57  
-
58  
-        $el2->appendChild($ch);
59  
-
60  
-        $this->assertTrue(isset($el2->childNodes[0]));