Permalink
Browse files

moved component and bridge unit tests to the src/ directory

This is the first step to make each Symfony Component and Bridge self-contained.
  • Loading branch information...
1 parent 9bdcf97 commit 0a54c1e390d9f0f38efb618fc8bbeb7752ce327c @fabpot fabpot committed Mar 28, 2012
Showing with 14,932 additions and 4 deletions.
  1. +16 −4 README.md
  2. +516 −0 Tests/AbstractDivLayoutTest.php
  3. +43 −0 Tests/AbstractExtensionTest.php
  4. +1,730 −0 Tests/AbstractLayoutTest.php
  5. +279 −0 Tests/AbstractTableLayoutTest.php
  6. +172 −0 Tests/Extension/Core/ChoiceList/ChoiceListTest.php
  7. +116 −0 Tests/Extension/Core/ChoiceList/LazyChoiceListTest.php
  8. +231 −0 Tests/Extension/Core/ChoiceList/ObjectChoiceListTest.php
  9. +210 −0 Tests/Extension/Core/ChoiceList/SimpleChoiceListTest.php
  10. +90 −0 Tests/Extension/Core/DataMapper/PropertyPathMapperTest.php
  11. +149 −0 Tests/Extension/Core/DataTransformer/ArrayToPartsTransformerTest.php
  12. +58 −0 Tests/Extension/Core/DataTransformer/BooleanToStringTransformerTest.php
  13. +76 −0 Tests/Extension/Core/DataTransformer/ChoiceToValueTransformerTest.php
  14. +76 −0 Tests/Extension/Core/DataTransformer/ChoicesToValuesTransformerTest.php
  15. +53 −0 Tests/Extension/Core/DataTransformer/DataTransformerChainTest.php
  16. +20 −0 Tests/Extension/Core/DataTransformer/DateTimeTestCase.php
  17. +512 −0 Tests/Extension/Core/DataTransformer/DateTimeToArrayTransformerTest.php
  18. +287 −0 Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php
  19. +141 −0 Tests/Extension/Core/DataTransformer/DateTimeToStringTransformerTest.php
  20. +104 −0 Tests/Extension/Core/DataTransformer/DateTimeToTimestampTransformerTest.php
  21. +111 −0 Tests/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformerTest.php
  22. +70 −0 Tests/Extension/Core/DataTransformer/LocalizedTestCase.php
  23. +71 −0 Tests/Extension/Core/DataTransformer/MoneyToLocalizedStringTransformerTest.php
  24. +175 −0 Tests/Extension/Core/DataTransformer/NumberToLocalizedStringTransformerTest.php
  25. +110 −0 Tests/Extension/Core/DataTransformer/PercentToLocalizedStringTransformerTest.php
  26. +120 −0 Tests/Extension/Core/DataTransformer/ValueToDuplicatesTransformerTest.php
  27. +90 −0 Tests/Extension/Core/DataTransformer/ValueToStringTransformerTest.php
  28. +73 −0 Tests/Extension/Core/EventListener/FixRadioInputListenerTest.php
  29. +61 −0 Tests/Extension/Core/EventListener/FixUrlProtocolListenerTest.php
  30. BIN Tests/Extension/Core/EventListener/Fixtures/randomhash
  31. +20 −0 Tests/Extension/Core/EventListener/MergeCollectionListenerArrayObjectTest.php
  32. +20 −0 Tests/Extension/Core/EventListener/MergeCollectionListenerArrayTest.php
  33. +80 −0 Tests/Extension/Core/EventListener/MergeCollectionListenerCustomArrayObjectTest.php
  34. +860 −0 Tests/Extension/Core/EventListener/MergeCollectionListenerTest.php
  35. +245 −0 Tests/Extension/Core/EventListener/ResizeFormListenerTest.php
  36. +49 −0 Tests/Extension/Core/EventListener/TrimListenerTest.php
  37. +78 −0 Tests/Extension/Core/Type/CheckboxTypeTest.php
  38. +673 −0 Tests/Extension/Core/Type/ChoiceTypeTest.php
  39. +188 −0 Tests/Extension/Core/Type/CollectionTypeTest.php
  40. +41 −0 Tests/Extension/Core/Type/CountryTypeTest.php
  41. +246 −0 Tests/Extension/Core/Type/DateTimeTypeTest.php
  42. +539 −0 Tests/Extension/Core/Type/DateTypeTest.php
  43. +365 −0 Tests/Extension/Core/Type/FieldTypeTest.php
  44. +54 −0 Tests/Extension/Core/Type/FileTypeTest.php
  45. +194 −0 Tests/Extension/Core/Type/FormTypeTest.php
  46. +25 −0 Tests/Extension/Core/Type/IntegerTypeTest.php
  47. +42 −0 Tests/Extension/Core/Type/LanguageTypeTest.php
  48. +30 −0 Tests/Extension/Core/Type/LocaleTypeTest.php
  49. +28 −0 Tests/Extension/Core/Type/LocalizedTestCase.php
  50. +34 −0 Tests/Extension/Core/Type/MoneyTypeTest.php
  51. +58 −0 Tests/Extension/Core/Type/NumberTypeTest.php
  52. +43 −0 Tests/Extension/Core/Type/PasswordTypeTest.php
  53. +24 −0 Tests/Extension/Core/Type/RadioTypeTest.php
  54. +115 −0 Tests/Extension/Core/Type/RepeatedTypeTest.php
  55. +409 −0 Tests/Extension/Core/Type/TimeTypeTest.php
  56. +31 −0 Tests/Extension/Core/Type/TimezoneTypeTest.php
  57. +56 −0 Tests/Extension/Core/Type/TypeTestCase.php
  58. +61 −0 Tests/Extension/Core/Type/UrlTypeTest.php
  59. +58 −0 Tests/Extension/Csrf/CsrfProvider/DefaultCsrfProviderTest.php
  60. +75 −0 Tests/Extension/Csrf/CsrfProvider/SessionCsrfProviderTest.php
  61. +87 −0 Tests/Extension/Csrf/EventListener/EnsureCsrfFieldListenerTest.php
  62. +112 −0 Tests/Extension/Csrf/Type/CsrfTypeTest.php
  63. +53 −0 Tests/Extension/Csrf/Type/FormTypeCsrfExtensionTest.php
  64. +41 −0 Tests/Extension/Csrf/Type/TypeTestCase.php
  65. +76 −0 Tests/Extension/Validator/Type/FieldTypeValidatorExtensionTest.php
  66. +49 −0 Tests/Extension/Validator/Type/TypeTestCase.php
  67. +851 −0 Tests/Extension/Validator/Validator/DelegatingValidatorTest.php
  68. +51 −0 Tests/Fixtures/Author.php
  69. +35 −0 Tests/Fixtures/FixedDataTransformer.php
  70. +57 −0 Tests/Fixtures/FixedFilterListener.php
  71. +49 −0 Tests/Fixtures/FooType.php
  72. +26 −0 Tests/Fixtures/FooTypeBarExtension.php
  73. +19 −0 Tests/Fixtures/FooTypeBazExtension.php
  74. +18 −0 Tests/Fixtures/Magician.php
  75. +63 −0 Tests/Fixtures/TestExtension.php
  76. 0 Tests/Fixtures/foo
  77. +228 −0 Tests/FormBuilderTest.php
  78. +545 −0 Tests/FormFactoryTest.php
  79. +7 −0 Tests/FormInterface.php
  80. +1,359 −0 Tests/FormTest.php
  81. +36 −0 Tests/Guess/GuessTest.php
  82. +412 −0 Tests/PropertyPathTest.php
  83. +197 −0 Tests/Util/FormUtilTest.php
  84. +31 −0 Tests/bootstrap.php
  85. +29 −0 phpunit.xml.dist
View
@@ -12,10 +12,22 @@ Silex integration:
https://github.com/fabpot/Silex/blob/master/src/Silex/Provider/FormServiceProvider.php
-Unit tests:
-
-https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/Form
-
Documentation:
http://symfony.com/doc/2.0/book/forms.html
+
+Resources
+---------
+
+You can run the unit tests with the following command:
+
+ phpunit -c src/Symfony/Component/Form/
+
+If you also want to run the unit tests that depend on other Symfony
+Components, declare the following environment variables before running
+PHPUnit:
+
+ export SYMFONY_EVENT_DISPATCHER=../path/to/EventDispatcher
+ export SYMFONY_LOCALE=../path/to/Locale
+ export SYMFONY_VALIDATOR=../path/to/Validator
+ export SYMFONY_HTTP_FOUNDATION=../path/to/HttpFoundation
Oops, something went wrong.

0 comments on commit 0a54c1e

Please sign in to comment.