Exemplo n.º 1
0
 /**
  * @param Request $request
  * @param         $key
  * @param         $value
  * @param         $result
  *
  * @dataProvider provideCheckQueryTestData
  */
 public function testCheckCurrentQuerystring(Request $request, $key, $value, $result)
 {
     app(HttpKernelContract::class)->handle($request);
     $this->assertSame($result, \Active::checkQuery($key, $value));
     $this->assertSame($result, app('active')->checkQuery($key, $value));
     $this->assertSame($result, if_query($key, $value));
 }
Exemplo n.º 2
0
function url_replace_callback_kb2($matches)
{
    //"make_url_friendly('\\6') . '-kba\\1.html' . if_query('\\2') . stripslashes('\\5\\6') . '</a>'",
    return make_url_friendly($matches[6]) . '-kba' . $matches[1] . '.html' . if_query($matches[2]) . stripslashes($matches[5] . $matches[6]) . '</a>';
}