Skip to content

Commit

Permalink
chore: Cleanup Code Base
Browse files Browse the repository at this point in the history
  • Loading branch information
xiCO2k committed May 27, 2022
1 parent 808b7aa commit f2ed5e4
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 58 deletions.
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
"App\\": "app/"
}
},
"autoload-dev": {
Expand All @@ -45,6 +43,9 @@
"optimize-autoloader": true,
"allow-plugins": {
"pestphp/pest-plugin": true
},
"platform": {
"php": "8.1"
}
},
"minimum-stability": "dev",
Expand Down
5 changes: 1 addition & 4 deletions config/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@
resource_path('views'),
],

'compiled' => env(
'VIEW_COMPILED_PATH',
realpath(storage_path('framework/views'))
),
'compiled' => 'compiled' => sys_get_temp_dir(),
];
3 changes: 0 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
Expand Down
42 changes: 0 additions & 42 deletions tests/Pest.php
Original file line number Diff line number Diff line change
@@ -1,45 +1,3 @@
<?php

/*
|--------------------------------------------------------------------------
| Test Case
|--------------------------------------------------------------------------
|
| The closure you provide to your test functions is always bound to a specific PHPUnit test
| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
| need to change it using the "uses()" function to bind a different classes or traits.
|
*/

uses(Tests\TestCase::class)->in('Feature');

/*
|--------------------------------------------------------------------------
| Expectations
|--------------------------------------------------------------------------
|
| When you're writing tests, you often need to check that values meet certain conditions. The
| "expect()" function gives you access to a set of "expectations" methods that you can use
| to assert different things. Of course, you may extend the Expectation API at any time.
|
*/

expect()->extend('toBeOne', function () {
return $this->toBe(1);
});

/*
|--------------------------------------------------------------------------
| Functions
|--------------------------------------------------------------------------
|
| While Pest is very powerful out-of-the-box, you may have some testing code specific to your
| project that you don't want to repeat in every file. Here you can also expose helpers as
| global functions to help you to reduce the number of lines of code in your test files.
|
*/

function something()
{
// ..
}
5 changes: 0 additions & 5 deletions tests/Unit/ExampleTest.php

This file was deleted.

0 comments on commit f2ed5e4

Please sign in to comment.