Exemplo n.º 1
0
 public function test_length()
 {
     $this->assertEquals(11, Str::length('foo bar baz'));
     $this->assertEquals(11, wpdevsclub_str_length('foo bar baz'));
 }
Exemplo n.º 2
0
 /**
  * Return the length of the given string.
  *
  * @param  string  $value
  * @return int
  */
 function wpdevsclub_str_length($value)
 {
     return Str::length($value);
 }