public function test_limit_words() { $this->assertEquals('The quick brown...', util::limit_words('The quick brown fox jumps over the lazy dog', 3)); $this->assertEquals('The quick brown fox jumps...', util::limit_words('The quick brown fox jumps over the lazy dog', 5)); $this->assertEquals('The...', util::limit_words('The quick brown fox jumps over the lazy dog', 1)); $this->assertEquals('The quick brown fox jumps over the lazy dog', util::limit_words('The quick brown fox jumps over the lazy dog', 90)); $this->assertEquals('The quick brown fox jumps over the...', util::limit_words('The quick brown fox jumps over the lazy dog', 7)); }