Lorem = new LoremHelper(new View(null)); } /** * LoremHelperTest::testObject() * * @return void */ public function testObject() { $this->assertInstanceOf('LoremHelper', $this->Lorem); } /** * LoremHelperTest::testIpsum() * * @return void */ public function testIpsum() { $is = $this->Lorem->ipsum(); $this->assertTextContains('
', $is); $this->assertTextContains('
', $is); $this->assertTrue(strlen($is) > 50); $is = $this->Lorem->ipsum(6, 'w'); $words = explode(' ', $is); $this->assertSame(6, count($words)); } }