for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Dontdrinkandroot\RestBundle\Tests\Functional;
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class MinimalEnvironmentTest extends FunctionalTestCase
{
protected $environment = 'minimal';
public function testList()
$client = $this->makeClient();
$client->request(
Request::METHOD_GET,
'/rest/minimalentities',
[],
[]
);
$content = $this->assertJsonResponse($client->getResponse());
$this->assertCount(0, $content);
}
public function testBla()
$this->expectException(NotFoundHttpException::class);
'/rest/test',
/**
* {@inheritdoc}
*/
protected function getFixtureClasses()
return [];
protected static function getBundleClasses()
return [
FrameworkBundle::class
];