Exemple #1
0
 /**
  * Tests Arr::callback()
  *
  * @test
  * @dataProvider providerCallback
  * @param string $str       String to parse
  * @param array  $expected  Callback and its parameters
  */
 public function testCallback($str, $expected)
 {
     $result = Arr::callback($str);
     $this->assertSame(2, count($result));
     $this->assertSame($expected, $result);
 }