codenihal
4 years ago

Trouble testing with symfony/http-kernel and PHPUnit

Posted 4 years ago by codenihal

My code is here

  public function handle(Request $request, $type = self::MASTER_REQUEST,     $catch =true)
      {
        return new Response();
     }

and this is my test

class CoreTest extends PHPUnit_Framework_TestCase
{
    public function testHandle() {
        $request = new Request(["/"]);
        $core = new Core();
        $d = $core->handle($request);
        $this->assertInstanceOf('Response',$d);
    }
}

My Tests fail, why?

Please sign in or create an account to participate in this conversation.