queries() public static method

public static queries ( )
Example #1
0
 /**
  * @test
  */
 public function shouldTraceInfoAboutHttpRequest()
 {
     //given
     $this->_createHttpTraceRequest('/request1', array('param1' => 1, 'param2' => 2));
     //when
     $queries = Arrays::first(Stats::queries());
     //then
     ArrayAssert::that($queries['request_params'][0])->hasSize(2)->containsKeyAndValue(array('param1' => 1, 'param2' => 2));
 }
Example #2
0
 /**
  * @test
  */
 public function shouldTraceRequestInfo()
 {
     //given
     Config::overrideProperty('debug')->with(true);
     Route::resource('restful');
     $this->get('/restful?param=1');
     //when
     $queries = Arrays::first(Stats::queries());
     //then
     ArrayAssert::that($queries['request_params'][0])->hasSize(1)->containsKeyAndValue(array('param' => 1));
 }