__toString() публичный Метод

Dumps the pattern as a string.
public __toString ( ) : string
Результат string
Пример #1
0
 function it_should_match_pattern_against_subject(Pattern $pattern)
 {
     $pattern->__toString()->willReturn("/./");
     $this->matches($pattern)->shouldReturn(true);
     $pattern->__toString()->willReturn("/different/");
     $this->matches($pattern)->shouldReturn(false);
 }