Private
Public Access
1
0

initial commit && create project in symfony3

This commit is contained in:
2016-09-22 13:56:57 +02:00
commit f4d2aad81c
867 changed files with 304033 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace Tests\AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/');
$this->assertEquals(200, $client->getResponse()->getStatusCode());
$this->assertContains('Welcome to Symfony', $crawler->filter('#container h1')->text());
}
}

View File

@@ -0,0 +1,17 @@
<?php
namespace Mine\SeekerBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/');
$this->assertContains('Hello World', $client->getResponse()->getContent());
}
}