<?php

use Illuminate\Support\Str;

class SupportStrTest extends PHPUnit_Framework_TestCase
{
  /**
   * Test the Str::limitWords method.
   *
   * @group laravel
   */
  public function testStringCanBeLimitedByWords()
  {
    $this->assertEquals('Taylor...', Str::limitWords('Taylor Otwell', 1));
    $this->assertEquals('Taylor___', Str::limitWords('Taylor Otwell', 1, '___'));
    $this->assertEquals('Taylor Otwell', Str::limitWords('Taylor Otwell', 3));
  }
}
<?php

use Illuminate\Support\Str;

class SupportStrTest extends PHPUnit_Framework_TestCase
{
  /**
   * Test the Str::words method.
   *
   * @group laravel
   */
  public function testStringCanBeLimitedByWords()
  {
    $this->assertEquals('Taylor...', Str::words('Taylor Otwell', 1));
    $this->assertEquals('Taylor___', Str::words('Taylor Otwell', 1, '___'));
    $this->assertEquals('Taylor Otwell', Str::words('Taylor Otwell', 3));
  }
}

Rename method Str::limitWords to Str::words
Rename method Str::limitWords to Str::words