Skip to content

Commit

Permalink
feat: wip unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hschoenenberger committed Nov 26, 2024
1 parent 1f16004 commit 384edcf
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
14 changes: 14 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"PrestaShopCorp\\LightweightContainer\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"PrestaShopCorp\\LightweightContainer\\Test\\": "tests/src/"
}
},
"authors": [
{
"name": "hschoenenberger",
Expand All @@ -15,5 +20,14 @@
],
"require": {
"php": ">=5.6"
},
"require-dev": {
"phpunit/phpunit": "^8.0 || ^9.0",
"phpstan/phpstan": "^1.7",
"prestashop/php-dev-tools": "^4.2"
},
"scripts": {
"phpunit": "./vendor/bin/phpunit --coverage-text",
"php-cs-fixer": "./vendor/bin/php-cs-fixer fix --config .php_cs.dist.php --diff"
}
}
9 changes: 9 additions & 0 deletions tests/phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
parameters:
paths:
- ../src
bootstrapFiles:
- ../vendor/autoload.php
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false

level: 6
16 changes: 16 additions & 0 deletions tests/src/ServiceContainer/ServiceContainerTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace PrestaShopCorp\LightweightContainer\Test\ServiceContainer;

use PHPUnit\Framework\TestCase;

class ServiceContainerTest extends TestCase
{
/**
* @test
*/
public function itShouldTestSomething()
{
// TODO: implement tests
}
}

0 comments on commit 384edcf

Please sign in to comment.