From cab6806ccefe09347e63324c29d21b776520c4fc Mon Sep 17 00:00:00 2001 From: Francois Zaninotto Date: Sun, 30 Oct 2011 13:26:51 +0100 Subject: [PATCH] Explicit the use of the boolean() provider to vary the type of data generated --- readme.md | 105 ++++++++++++++++++++++++++++---------------------- test/test.php | 34 ++++++++-------- 2 files changed, 77 insertions(+), 62 deletions(-) diff --git a/readme.md b/readme.md index fd7c3816..ac4f8e3b 100644 --- a/readme.md +++ b/readme.md @@ -270,34 +270,34 @@ The following script generates a valid XML document: ```php - - - - + + +boolean(25)): ?> +
- streetAddress ?> - city ?> - postcode ?> - state ?> + streetAddress ?> + city ?> + postcode ?> + state ?>
- - - bs ?> + +boolean(33)): ?> + bs ?> - - +boolean(33)): ?> + - +boolean(15)): ?>
text(400) ?> +text(400) ?> ]]>
@@ -396,7 +396,7 @@ Aut asperiores nihil eius repellendus. Vero nihil corporis voluptatem explicabo
- +
478 Daisha Landing Apt. 510 West Lizethhaven @@ -404,43 +404,58 @@ Aut asperiores nihil eius repellendus. Vero nihil corporis voluptatem explicabo WestVirginia
- + orchestrate dynamic networks + + +
+ +
+
+ + +
+ 1251 Koelpin Mission + North Revastad + 81620 + Maryland +
+
- - - + +
- 0920 Adah Skyway - South Kristopher - 62693 - Mississippi + 6396 Langworth Hills Apt. 446 + New Carlos + 89399-0268 + Wyoming
- + +
- - + + +
- 91758 Sienna Burg Apt. 791 - Murrayfurt - 44284 - Virginia + 2246 Kreiger Station Apt. 291 + Kaydenmouth + 11397-1072 + Wyoming
- - - -
- - -
- 165 Bogisich Unions Apt. 630 - Corwinhaven - 57971 - Virginia -
- + + grow sticky portals +
+ +
``` diff --git a/test/test.php b/test/test.php index 13d01a22..2da20027 100644 --- a/test/test.php +++ b/test/test.php @@ -1,35 +1,35 @@ seed(5); +$faker = Faker\Factory::create(); +$faker->seed(5); ?> - - - - + + +boolean(25)): ?> +
- streetAddress ?> - city ?> - postcode ?> - state ?> + streetAddress ?> + city ?> + postcode ?> + state ?>
- - - bs ?> + +boolean(33)): ?> + bs ?> - - +boolean(33)): ?> + - +boolean(15)): ?>
text(400) ?> +text(400) ?> ]]>