/projects/netbeans-7.3/php.editor/test/unit/src/org/netbeans/modules/php/editor/lexer/PHP53FeaturesTest.java

https://gitlab.com/essere.lab.public/qualitas.class-corpus · Java · 244 lines · 149 code · 50 blank · 45 comment · 0 complexity · 1692dbb56ef397a60b8090fc6b1ae3c5 MD5 · raw file

  1. /*
  2. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  3. *
  4. * Copyright 2010 Oracle and/or its affiliates. All rights reserved.
  5. *
  6. * Oracle and Java are registered trademarks of Oracle and/or its affiliates.
  7. * Other names may be trademarks of their respective owners.
  8. *
  9. * The contents of this file are subject to the terms of either the GNU
  10. * General Public License Version 2 only ("GPL") or the Common
  11. * Development and Distribution License("CDDL") (collectively, the
  12. * "License"). You may not use this file except in compliance with the
  13. * License. You can obtain a copy of the License at
  14. * http://www.netbeans.org/cddl-gplv2.html
  15. * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
  16. * specific language governing permissions and limitations under the
  17. * License. When distributing the software, include this License Header
  18. * Notice in each file and include the License file at
  19. * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
  20. * particular file as subject to the "Classpath" exception as provided
  21. * by Oracle in the GPL Version 2 section of the License file that
  22. * accompanied this code. If applicable, add the following below the
  23. * License Header, with the fields enclosed by brackets [] replaced by
  24. * your own identifying information:
  25. * "Portions Copyrighted [year] [name of copyright owner]"
  26. *
  27. * If you wish your version of this file to be governed by only the CDDL
  28. * or only the GPL Version 2, indicate your decision by adding
  29. * "[Contributor] elects to include this software in this distribution
  30. * under the [CDDL or GPL Version 2] license." If you do not indicate a
  31. * single choice of license, a recipient has the option to distribute
  32. * your version of this file under either the CDDL, the GPL Version 2 or
  33. * to extend the choice of license to its licensees as provided above.
  34. * However, if you add GPL Version 2 code and therefore, elected the GPL
  35. * Version 2 license, then the option applies only if the new code is
  36. * made subject to such option by the copyright holder.
  37. *
  38. * Contributor(s):
  39. *
  40. * Portions Copyrighted 2008 Sun Microsystems, Inc.
  41. */
  42. package org.netbeans.modules.php.editor.lexer;
  43. /**
  44. *
  45. * @author Petr Pisl
  46. */
  47. public class PHP53FeaturesTest extends PHPLexerTestBase {
  48. public PHP53FeaturesTest(String testName) {
  49. super(testName);
  50. }
  51. @Override
  52. protected void setUp() throws Exception {
  53. super.setUp();
  54. }
  55. @Override
  56. protected void tearDown() throws Exception {
  57. super.tearDown();
  58. }
  59. public void testGoto_01() throws Exception {
  60. performTest("jump01");
  61. }
  62. public void testGoto_02() throws Exception {
  63. performTest("jump02");
  64. }
  65. public void testGoto_03() throws Exception {
  66. performTest("jump03");
  67. }
  68. public void testGoto_04() throws Exception {
  69. performTest("jump04");
  70. }
  71. public void testGoto_05() throws Exception {
  72. performTest("jump05");
  73. }
  74. public void testGoto_06() throws Exception {
  75. performTest("jump06");
  76. }
  77. public void testGoto_07() throws Exception {
  78. performTest("jump07");
  79. }
  80. public void testGoto_08() throws Exception {
  81. performTest("jump08");
  82. }
  83. public void testGoto_09() throws Exception {
  84. performTest("jump09");
  85. }
  86. public void testGoto_10() throws Exception {
  87. performTest("jump10");
  88. }
  89. public void testGoto_11() throws Exception {
  90. performTest("jump11");
  91. }
  92. public void testGoto_12() throws Exception {
  93. performTest("jump12");
  94. }
  95. public void testGoto_13() throws Exception {
  96. performTest("jump13");
  97. }
  98. public void testNowDoc_00() throws Exception {
  99. performTest("nowdoc_000");
  100. }
  101. public void testNowDoc_01() throws Exception {
  102. performTest("nowdoc_001");
  103. }
  104. public void testNowDoc_02() throws Exception {
  105. performTest("nowdoc_002");
  106. }
  107. public void testNowDoc_03() throws Exception {
  108. performTest("nowdoc_003");
  109. }
  110. public void testNowDoc_04() throws Exception {
  111. performTest("nowdoc_004");
  112. }
  113. public void testNowDoc_05() throws Exception {
  114. performTest("nowdoc_005");
  115. }
  116. public void testNowDoc_06() throws Exception {
  117. performTest("nowdoc_006");
  118. }
  119. public void testNowDoc_07() throws Exception {
  120. performTest("nowdoc_007");
  121. }
  122. public void testNowDoc_08() throws Exception {
  123. performTest("nowdoc_008");
  124. }
  125. public void testNowDoc_09() throws Exception {
  126. performTest("nowdoc_009");
  127. }
  128. public void testNowDoc_10() throws Exception {
  129. performTest("nowdoc_010");
  130. }
  131. public void testNowDoc_11() throws Exception {
  132. performTest("nowdoc_011");
  133. }
  134. public void testNowDoc_12() throws Exception {
  135. performTest("nowdoc_012");
  136. }
  137. public void testNowDoc_13() throws Exception {
  138. performTest("nowdoc_013");
  139. }
  140. public void testNowDoc_14() throws Exception {
  141. performTest("nowdoc_014");
  142. }
  143. public void testNowDoc_15() throws Exception {
  144. performTest("nowdoc_015");
  145. }
  146. public void testHereDoc53_01() throws Exception {
  147. performTest("heredoc_001");
  148. }
  149. public void testHereDoc53_02() throws Exception {
  150. performTest("heredoc_002");
  151. }
  152. public void testHereDoc53_03() throws Exception {
  153. performTest("heredoc_003");
  154. }
  155. public void testHereDoc53_04() throws Exception {
  156. performTest("heredoc_004");
  157. }
  158. public void testHereDoc53_05() throws Exception {
  159. performTest("heredoc_005");
  160. }
  161. public void testHereDoc53_06() throws Exception {
  162. performTest("heredoc_006");
  163. }
  164. public void testHereDoc53_07() throws Exception {
  165. performTest("heredoc_007");
  166. }
  167. public void testHereDoc53_08() throws Exception {
  168. performTest("heredoc_008");
  169. }
  170. public void testHereDoc53_09() throws Exception {
  171. performTest("heredoc_009");
  172. }
  173. public void testHereDoc53_10() throws Exception {
  174. performTest("heredoc_010");
  175. }
  176. public void testHereDoc53_11() throws Exception {
  177. performTest("heredoc_011");
  178. }
  179. public void testHereDoc53_12() throws Exception {
  180. performTest("heredoc_012");
  181. }
  182. public void testHereDoc53_13() throws Exception {
  183. performTest("heredoc_013");
  184. }
  185. public void testHereDoc53_14() throws Exception {
  186. performTest("heredoc_014");
  187. }
  188. public void testHereDoc53_15() throws Exception {
  189. performTest("heredoc_015");
  190. }
  191. public void testIssue225549() throws Exception {
  192. performTest("lexer/issue225549");
  193. }
  194. }