main
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use Illuminate\Contracts\Console\Kernel;
|
||||
|
||||
trait CreatesApplication
|
||||
{
|
||||
/**
|
||||
* Creates the application.
|
||||
*
|
||||
* @return \Illuminate\Foundation\Application
|
||||
*/
|
||||
public function createApplication()
|
||||
{
|
||||
$app = require __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
$app->make(Kernel::class)->bootstrap();
|
||||
|
||||
return $app;
|
||||
}
|
||||
}
|
||||
Executable
+21
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A basic test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function test_example()
|
||||
{
|
||||
$response = $this->get('/');
|
||||
|
||||
$response->assertStatus(200);
|
||||
}
|
||||
}
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
[10-Jun-2024 03:18:20 UTC] PHP Fatal error: Uncaught Error: Class 'Tests\TestCase' not found in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php:8
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php on line 8
|
||||
[10-Jun-2024 20:09:06 UTC] PHP Fatal error: Uncaught Error: Class 'Tests\TestCase' not found in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php:8
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php on line 8
|
||||
[10-Jun-2024 20:10:35 UTC] PHP Fatal error: Uncaught Error: Class 'Tests\TestCase' not found in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php:8
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php on line 8
|
||||
[10-Jun-2024 20:12:05 UTC] PHP Fatal error: Uncaught Error: Class 'Tests\TestCase' not found in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php:8
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php on line 8
|
||||
[10-Jun-2024 20:13:46 UTC] PHP Fatal error: Uncaught Error: Class 'Tests\TestCase' not found in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php:8
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php on line 8
|
||||
[10-Jun-2024 20:14:07 UTC] PHP Fatal error: Uncaught Error: Class 'Tests\TestCase' not found in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php:8
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/Feature/ExampleTest.php on line 8
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Tests;
|
||||
|
||||
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
||||
|
||||
abstract class TestCase extends BaseTestCase
|
||||
{
|
||||
use CreatesApplication;
|
||||
}
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Unit;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ExampleTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* A basic test example.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function test_example()
|
||||
{
|
||||
$this->assertTrue(true);
|
||||
}
|
||||
}
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
[10-Jun-2024 20:08:59 UTC] PHP Fatal error: Uncaught Error: Class 'PHPUnit\Framework\TestCase' not found in /home/montechi/public_html/server_app/tests/Unit/ExampleTest.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/Unit/ExampleTest.php on line 7
|
||||
[10-Jun-2024 20:10:07 UTC] PHP Fatal error: Uncaught Error: Class 'PHPUnit\Framework\TestCase' not found in /home/montechi/public_html/server_app/tests/Unit/ExampleTest.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/Unit/ExampleTest.php on line 7
|
||||
[10-Jun-2024 20:12:00 UTC] PHP Fatal error: Uncaught Error: Class 'PHPUnit\Framework\TestCase' not found in /home/montechi/public_html/server_app/tests/Unit/ExampleTest.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/Unit/ExampleTest.php on line 7
|
||||
[10-Jun-2024 20:13:50 UTC] PHP Fatal error: Uncaught Error: Class 'PHPUnit\Framework\TestCase' not found in /home/montechi/public_html/server_app/tests/Unit/ExampleTest.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/Unit/ExampleTest.php on line 7
|
||||
Executable
+36
@@ -0,0 +1,36 @@
|
||||
[07-Jun-2024 21:28:43 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /home/montechi/public_html/server_app/tests/TestCase.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/TestCase.php on line 7
|
||||
[07-Jun-2024 21:28:44 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /home/montechi/public_html/server_app/tests/TestCase.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/TestCase.php on line 7
|
||||
[07-Jun-2024 21:28:45 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /home/montechi/public_html/server_app/tests/TestCase.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/TestCase.php on line 7
|
||||
[07-Jun-2024 21:29:10 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /home/montechi/public_html/server_app/tests/TestCase.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/TestCase.php on line 7
|
||||
[08-Jun-2024 22:11:53 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /home/montechi/public_html/server_app/tests/TestCase.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/TestCase.php on line 7
|
||||
[08-Jun-2024 22:11:53 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /home/montechi/public_html/server_app/tests/TestCase.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/TestCase.php on line 7
|
||||
[08-Jun-2024 22:12:23 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /home/montechi/public_html/server_app/tests/TestCase.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/TestCase.php on line 7
|
||||
[10-Jun-2024 19:08:06 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /home/montechi/public_html/server_app/tests/TestCase.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/TestCase.php on line 7
|
||||
[10-Jun-2024 19:10:10 UTC] PHP Fatal error: Uncaught Error: Class 'Illuminate\Foundation\Testing\TestCase' not found in /home/montechi/public_html/server_app/tests/TestCase.php:7
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in /home/montechi/public_html/server_app/tests/TestCase.php on line 7
|
||||
Reference in New Issue
Block a user