Commit 198907a2 authored by Julien Fastré's avatar Julien Fastré
Browse files

delete unnecessary controllers

parent aba1d23a
<?php
namespace Chill\ICPC2Bundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('ChillICPC2Bundle:Default:index.html.twig', array('name' => $name));
}
}
<?php
namespace Chill\ICPC2Bundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment