Beispiel #1
0
 /**
  * @dataProvider stringWithSeparatorProvider
  */
 public function testToString($string, $separator)
 {
     $array = explode($separator, $string);
     $ma = new ImmutableArray($array);
     $this->assertTrue($string === $ma->toString($separator));
     $this->assertTrue(implode(', ', $array) === (string) $ma);
 }