Browse files

added tests for redundant whitespaces

  • Loading branch information...
1 parent d414a15 commit 885ab137daf46b0cf7e75b5b58b515c1b42499d4 @juzna committed Aug 18, 2012
Showing with 34 additions and 1 deletion.
  1. +1 −1 examples/03-generics/GenericsExample/Other/ArrayHash.php
  2. +33 −0 examples/03-generics/tests/06.phpt
View
2 examples/03-generics/GenericsExample/Other/ArrayHash.php
@@ -4,7 +4,7 @@
-class ArrayHash<Key, Val >
+class ArrayHash<Key, Val>
{
}
View
33 examples/03-generics/tests/06.phpt
@@ -0,0 +1,33 @@
+more type arguments
+<?php#e
+namespace A\B;
+class ArrayHash<Key, Val>
+{
+
+}
+?>
+<?php#c
+namespace A\B;
+\GenericsRegistry::registerClass('A\B\ArrayHash', array('Key', 'Val'));class ArrayHash implements \GenericType
+{public function getParametrizedType($parameterName) { return \GenericsRegistry::getParametrizedTypesForObject($this); }
+
+}
+?>
+------------------------------------------------j-d--
+
+
+more type arguments and whitespaces there and over
+<?php#e
+namespace A\B;
+class ArrayHash< Key, Val >
+{
+
+}
+?>
+<?php#c
+namespace A\B;
+\GenericsRegistry::registerClass('A\B\ArrayHash', array('Key', 'Val'));class ArrayHash implements \GenericType
+{public function getParametrizedType($parameterName) { return \GenericsRegistry::getParametrizedTypesForObject($this); }
+
+}
+?>

0 comments on commit 885ab13

Please sign in to comment.