Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
"php": ">=8.0"
},
"require-dev": {
"larastan/larastan": "^3.7",
"laravel/pint": "^1.25",
"orchestra/testbench": "^10.6",
"pestphp/pest": "^4.1",
"phpstan/phpstan": "^2.1",
"rector/rector": "^2.2"
Expand Down
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
includes:
- vendor/larastan/larastan/extension.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon

parameters:
Expand Down
10 changes: 10 additions & 0 deletions src/HamroCDN.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

namespace HamroCDN;

final class HamroCDN
{
//
}
20 changes: 0 additions & 20 deletions src/Laravel/HamroCDNServiceProvider.php

This file was deleted.

33 changes: 1 addition & 32 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,4 @@

namespace HamroCDN\Tests;

use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Orchestra\Testbench\Concerns\WithWorkbench;
use Orchestra\Testbench\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
use LazilyRefreshDatabase;
use WithWorkbench;

protected function setUp(): void
{
parent::setUp();

$this->setUpDatabase();
}

protected function defineEnvironment($app): void
{
config()->set('database.connections.the_test', [
'driver' => 'sqlite',
'database' => ':memory:',
'prefix' => '',
]);
config()->set('database.default', 'the_test');
config()->set('app.key', 'base64:Hupx3yAySikrM2/edkZQNQHslgDWYfiBfCuSThJ5SK8=');
}

protected function setUpDatabase(): void
{
//
}
}
abstract class TestCase extends \PHPUnit\Framework\TestCase {}
7 changes: 7 additions & 0 deletions tests/UploadTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

declare(strict_types=1);

it('passes test', function () {
expect(1)->toBe(1);
});