Something is wrong with Lorem provider #47

Closed
umpirsky opened this Issue Jul 1, 2012 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

umpirsky commented Jul 1, 2012

Here are code examples and their outputs:

$faker = \Faker\Factory::create();
var_dump($faker->text(20)); // string(0) "" (expected some text)
$faker = \Faker\Factory::create();
var_dump($faker->sentence(2)); // string(22) "Quos vel odit dolorum."  (expected 2 words sentence)
$faker = \Faker\Factory::create();
var_dump($faker->paragraph(2)); // string(136) "Quasi et qui quos ut veniam sunt. Soluta harum minima aut mollitia libero quae cum. Sapiente dolor ullam eaque voluptatibus aperiam quo." (expected 2 sentence paragraph)

@cristianoc72 cristianoc72 added a commit to cristianoc72/Faker that referenced this issue Oct 8, 2012

@fzaninotto @cristianoc72 fzaninotto + cristianoc72 Update Lorem provider to remove WTF effect.
`Lorem::words()`, and `Lorem::sentences()` can now return an exact number of words or paragraphs thanks to a second parameter.
`Lorem::text()` now works for small number of characters by being smarter.

Closes #47.
f290494

@mgriffin mgriffin pushed a commit to mgriffin/Faker that referenced this issue Feb 19, 2014

@fzaninotto fzaninotto Update Lorem provider to remove WTF effect.
`Lorem::words()`, and `Lorem::sentences()` can now return an exact number of words or paragraphs thanks to a second parameter.
`Lorem::text()` now works for small number of characters by being smarter.

Closes #47.
e9cc3b6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment