for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
/*
* This file is part of the KleijnWeb\SwaggerBundle package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace KleijnWeb\SwaggerBundle\Tests\Functional;
use KleijnWeb\SwaggerBundle\Test\ApiResponseErrorException;
use KleijnWeb\SwaggerBundle\Test\ApiTestCase;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
/**
* @author John Kleijn <[email protected]>
* @group functional
class BasicSecuredApiTest extends WebTestCase
{
use ApiTestCase;
* @var string
protected $env = 'secure_basic';
* @test
public function canGetUnsecuredContentWithoutAuth()
$string = $this->get('/basic-auth/v1/unsecured');
$this->assertSame($string, 'UNSECURED CONTENT');
}