slugifyFilter() 공개 메소드

Slugify filter.
public slugifyFilter ( string $string, string | null $separator = null ) : string
$string string
$separator string | null
리턴 string
예제 #1
0
 /**
  * @test
  * @covers Cocur\Slugify\Bridge\Twig\SlugifyExtension::slugifyFilter()
  */
 public function slugifyFilter()
 {
     $this->slugify->shouldReceive('slugify')->with('hällo wörld', '_')->once()->andReturn('haello_woerld');
     $this->assertEquals('haello_woerld', $this->extension->slugifyFilter('hällo wörld', '_'));
 }