fixed str test cases and str::limit function.

This commit is contained in:
Taylor Otwell
2011-10-15 14:17:58 -05:00
parent a6eaa06981
commit 17ea09364d
3 changed files with 11 additions and 10 deletions

View File

@@ -45,7 +45,7 @@ class StrTest extends PHPUnit_Framework_TestCase {
public function test_limit_words()
{
$this->assertEquals('This is a...', Laravel\Str::limit_words('This is a string of text', 3, '...'));
$this->assertEquals('This is a string ', Laravel\Str::limit_words('This is a string of text', 4, ' '));
$this->assertEquals('This is a...', Laravel\Str::words('This is a string of text', 3, '...'));
$this->assertEquals('This is a string ', Laravel\Str::words('This is a string of text', 4, ' '));
}
}