Skip to content

Commit 2ec0380

Browse files
committed
working on test case.
1 parent 416ed85 commit 2ec0380

2 files changed

Lines changed: 3 additions & 27 deletions

File tree

app/tests/TestCase.php

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,11 @@
11
<?php
22

3-
class TestCase extends Silex\WebTestCase {
4-
5-
/**
6-
* Setup the test environment.
7-
*
8-
* @return void
9-
*/
10-
public function setUp()
11-
{
12-
parent::setUp();
13-
14-
$this->client = $this->createClient();
15-
}
16-
17-
/**
18-
* Execute a request against the test client application.
19-
*
20-
* @return Symfony\Component\DomCrawler\Crawler
21-
*/
22-
public function request()
23-
{
24-
$callable = array($this->client, 'request');
25-
26-
return call_user_func_array($callable, func_get_args());
27-
}
3+
class TestCase extends Illuminate\Foundation\TestCase {
284

295
/**
306
* Creates the application.
317
*
32-
* @return Symfony\Component\HttpKernel\HttpKernel
8+
* @return Symfony\Component\HttpKernel\HttpKernelInterface
339
*/
3410
public function createApplication()
3511
{

shine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
$app->detectEnvironment(array(
4242

43-
'local' => array('localhost', '*.dev'),
43+
'local' => array('localhost', '*.dev', '*.app'),
4444

4545
));
4646

0 commit comments

Comments
 (0)