示例#1
0
 public function testParagraphsAsText()
 {
     $paragraphs = TestableLorem::paragraphs(2, true);
     $expected = "This is a test paragraph. It has three sentences. Exactly three.\n\nThis is a test paragraph. It has three sentences. Exactly three.";
     $this->assertEquals($expected, $paragraphs);
 }
示例#2
0
 public function testTextReturnsParagraphsWhenAskedSizeGreaterOrEqualThanThan100()
 {
     $this->assertEquals('This is a test paragraph. It has three sentences. Exactly three.', TestableLorem::text(100));
 }