File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?php
2+
3+ class ExampleTest extends TestCase {
4+
5+ /**
6+ * A basic functional test example.
7+ *
8+ * @return void
9+ */
10+ public function testBasicExample ()
11+ {
12+ $ client = $ this ->createClient ();
13+
14+ $ crawler = $ client ->request ('GET ' , '/ ' );
15+
16+ $ this ->assertCount (1 , $ crawler ->filter ('h1:contains("Hello World!") ' ));
17+ }
18+
19+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ class TestCase extends Silex \WebTestCase {
4+
5+ /**
6+ * Creates the application.
7+ *
8+ * @return Symfony\Component\HttpKernel\HttpKernel
9+ */
10+ public function createApplication ()
11+ {
12+ return require __DIR__ .'/../../shine.php ' ;
13+ }
14+
15+ }
Original file line number Diff line number Diff line change 11{
22 "require" : {
33 "illuminate/foundation" : " >=1.0.0"
4+ },
5+ "autoload" : {
6+ "classmap" : [" app/tests/TestCase.php" ]
47 }
58}
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <phpunit backupGlobals =" false"
3+ backupStaticAttributes =" false"
4+ bootstrap =" vendor/autoload.php"
5+ colors =" true"
6+ convertErrorsToExceptions =" true"
7+ convertNoticesToExceptions =" true"
8+ convertWarningsToExceptions =" true"
9+ processIsolation =" false"
10+ stopOnFailure =" false"
11+ syntaxCheck =" false"
12+ >
13+ <testsuites >
14+ <testsuite name =" Application Test Suite" >
15+ <directory >./app/tests/</directory >
16+ </testsuite >
17+ </testsuites >
18+ </phpunit >
You can’t perform that action at this time.
0 commit comments