1 Commits

Author SHA1 Message Date
Jeremias Wolff
f629fa5f29 restore box.json 2023-04-18 20:38:00 +02:00
11 changed files with 1568 additions and 3131 deletions

View File

@@ -12,4 +12,5 @@ trim_trailing_whitespace = true
trim_trailing_whitespace = false
[*.yml]
indent_style = space
indent_size = 2

View File

@@ -8,16 +8,20 @@ class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
public function boot()
{
//
}
/**
* Register any application services.
*
* @return void
*/
public function register(): void
public function register()
{
//
}

View File

@@ -0,0 +1,18 @@
{
"chmod": "0755",
"directories": [
"app",
"bootstrap",
"config",
"vendor"
],
"files": [
"composer.json"
],
"exclude-composer-files": false,
"compression": "GZ",
"compactors": [
"KevinGH\\Box\\Compactor\\Php",
"KevinGH\\Box\\Compactor\\Json"
]
}

View File

@@ -5,10 +5,6 @@
"homepage": "https://github.com/comes/ecowitt2weewx",
"type": "project",
"license": "MIT",
"support": {
"issues": "https://github.com/comes/ecowitt2weewx/issues",
"source": "https://github.com/comes/ecowitt2weewx"
},
"authors": [
{
"name": "Jeremias Wolff",
@@ -16,20 +12,15 @@
}
],
"require": {
"php": "^8.1",
"laravel-zero/framework": "^10.0.2",
"nunomaduro/termwind": "^1.15.1"
},
"require-dev": {
"laravel/pint": "^1.8",
"mockery/mockery": "^1.5.1",
"pestphp/pest": "^2.5"
"php": "^8.0",
"guzzlehttp/guzzle": "^7.5",
"illuminate/http": "^9.47",
"laravel-zero/framework": "^9.2",
"nesbot/carbon": "^2.65"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
"App\\": "app/"
}
},
"autoload-dev": {
@@ -45,7 +36,7 @@
"pestphp/pest-plugin": true
}
},
"minimum-stability": "stable",
"minimum-stability": "dev",
"prefer-stable": true,
"bin": ["ecowitt2weewx"]
}

4565
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -42,19 +42,6 @@ return [
'env' => 'development',
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'UTC',
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers

View File

@@ -56,13 +56,10 @@ return [
'hidden' => [
NunoMaduro\LaravelConsoleSummary\SummaryCommand::class,
Symfony\Component\Console\Command\DumpCompletionCommand::class,
Symfony\Component\Console\Command\HelpCommand::class,
Illuminate\Console\Scheduling\ScheduleRunCommand::class,
Illuminate\Console\Scheduling\ScheduleListCommand::class,
Illuminate\Console\Scheduling\ScheduleFinishCommand::class,
Illuminate\Foundation\Console\VendorPublishCommand::class,
LaravelZero\Framework\Commands\StubPublishCommand::class,
],
/*

View File

@@ -1,9 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
>
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
@@ -12,9 +16,9 @@
<directory suffix="Test.php">./tests/Unit</directory>
</testsuite>
</testsuites>
<source>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./app</directory>
</include>
</source>
</coverage>
</phpunit>

View File

@@ -3,14 +3,15 @@
namespace Tests;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Foundation\Application;
trait CreatesApplication
{
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication(): Application
public function createApplication()
{
$app = require __DIR__.'/../bootstrap/app.php';

View File

@@ -0,0 +1,7 @@
<?php
test('inspiring command', function () {
$this->artisan('inspiring')
->expectsOutput('Simplicity is the ultimate sophistication.')
->assertExitCode(0);
});

View File

@@ -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(): void
{
// ..
}