예제 #1
0
 public function testConstructorWithCustomArgValues()
 {
     $resp = new CustomResponse();
     $data = array('name' => 'item name', 'price' => '9.99');
     $req = new MockRequest($data, $resp);
     $this->assertSame($data, $req->getData());
     $this->assertSame($resp, $req->getResponse());
 }
 public function testTransformJson()
 {
     $request = new MockRequest();
     Config::shouldReceive('get')->with('c4tech.snakify_json_input', true)->once()->andReturn(false);
     expect($request->transformJson()->all())->equals([]);
 }