phpunit test api port number checking - development

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());
}



from Laravel Questions and Answers https://laravelquestions.com/php/phpunit-test-api-port-number-checking/
via Lzo Media

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

ng-include of inline SVG does not display gradient except in Chrome

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development