for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Test;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase as BaseWebTestCase;
/**
* WebTestCase.
*/
class WebTestCase extends BaseWebTestCase
{
* @return \Symfony\Bundle\FrameworkBundle\Client
protected function createAnonymousApiClient()
return static::createClient([], [
'CONTENT_TYPE' => 'application/json',
]);
}
* @param string $user
* @param string $password
*
protected function createAuthenticatedApiClient($user = '[email protected]', $password = 'password')
return $this->createClient([], [
'PHP_AUTH_USER' => $user,
'PHP_AUTH_PW' => $password,