lundi 5 mars 2018

phpunit test api port number checking

I want to check my api status with port number.

How to want to write the test code for port no with api.

My sample code :

public function testExample(){
    $response = $this->call('GET', '/v1/candidates');        
    $this->assertEquals(200, $response->status());
}

Aucun commentaire:

Enregistrer un commentaire