for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Copyright (C) 2019 Mazarini <[email protected]>.
* This file is part of mazarini/design.
*
* mazarini/design is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at your
* option) any later version.
* mazarini/design is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
* You should have received a copy of the GNU General Public License
*/
namespace App\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Component\HttpFoundation\Response;
class UrlControllerTest extends WebTestCase
{
/**
* @dataProvider getUrls
public function testUrls(string $url)
$client = static::createClient();
$client->request('GET', $url);
$this->assertSame(
Response::HTTP_OK,
$client->getResponse()->getStatusCode(),
sprintf('The %s public URL loads correctly.', $url)
);
}
public function getUrls()
yield ['/info'];