Пример #1
0
 /**
  * Tests converting array to string.
  *
  * @param   array    $input     The array being input
  * @param   string   $inner     The inner glue
  * @param   string   $outer     The outer glue
  * @param   boolean  $keepKey   Keep the outer key
  * @param   string   $expect    The expected return value
  * @param   string   $message   The failure message
  * @param   boolean  $defaults  Use function defaults (true) or full argument list
  *
  * @return  void
  *
  * @dataProvider  seedTestToString
  * @covers        Windwalker\Utilities\ArrayHelper::toString
  * @since         1.0
  */
 public function testToString($input, $inner, $outer, $keepKey, $expect, $message, $defaults)
 {
     if ($defaults) {
         $output = ArrayHelper::toString($input);
     } else {
         $output = ArrayHelper::toString($input, $inner, $outer, $keepKey);
     }
     $this->assertEquals($expect, $output, $message);
 }