moving laravel 4 into develop branch.

This commit is contained in:
Taylor Otwell
2013-01-11 15:14:07 -06:00
parent 63bf89efd5
commit 5d99f9f1d6
463 changed files with 1283 additions and 65186 deletions

19
app/tests/ExampleTest.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
class ExampleTest extends TestCase {
/**
* A basic functional test example.
*
* @return void
*/
public function testBasicExample()
{
$crawler = $this->client->request('GET', '/');
$this->assertTrue($this->client->getResponse()->isOk());
$this->assertCount(1, $crawler->filter('h1:contains("Hello World!")'));
}
}

19
app/tests/TestCase.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
class TestCase extends Illuminate\Foundation\Testing\TestCase {
/**
* Creates the application.
*
* @return Symfony\Component\HttpKernel\HttpKernelInterface
*/
public function createApplication()
{
$unitTesting = true;
$testEnvironment = 'testing';
return require __DIR__.'/../../start.php';
}
}