Skip to content

Commit

Permalink
feat: move tests/ directory to root
Browse files Browse the repository at this point in the history
  • Loading branch information
SandroMiguel committed Jul 13, 2024
1 parent e2b22f6 commit 1f21c42
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 26 deletions.
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ PHP Sceleto is a directory structure template designed for creating PHP librarie
your-php-library/
├──┬ src/
│ ├── [SomeClass].php
│ │ ├ [AnotherClass].php
│ │ ├ ...
├── [SomeClass].php
│ │ ├─── [AnotherClass].php
│ │ ├─── ...
│ │
│ └──┬ tests/
│ └ tests/
│ ├─── [SomeClass]Test.php
│ ├─── [AnotherClass]Test.php
│ ├─── ...
Expand All @@ -49,26 +49,26 @@ your-php-library/

Files and folders overview.

| File/Folder | Description |
| ---------------------------------- | ---------------------------------------------------- |
| **src/** | Source code of the application |
| src/**SomeClass.php** | Example PHP class file (SomeClass) |
| src/**AnotherClass.php** | Example PHP class file (AnotherClass) |
| src/**tests/** | Tests directory |
| src/tests/**SomeClassTest.php** | PHPUnit test case for `SomeClass` (Example class) |
| src/tests/**AnotherClassTest.php** | PHPUnit test case for `AnotherClass` (Example class) |
| **logs/** | Log files (e.g., code coverage report) |
| **docs/** | Documentation files (e.g., PHPDoc) |
| **vendor/** | Composer vendor directory contains your dependencies |
| **.editorconfig** | IDE coding style settings |
| **.gitignore** | Files and directories that Git should ignore |
| **.htaccess** | Hypertext access file for Apache configuration |
| **composer.json** | Composer dependencies |
| **composer.lock** | Composer lock file |
| **phpunit.xml.dist** | PHPUnit configuration file |
| **LICENSE** | License document |
| **CONTRIBUTING.md** | Contributing guidelines |
| **README.md** | This document |
| File/Folder | Description |
| ------------------------------ | ---------------------------------------------------- |
| **src/** | Source code of the application |
| src/**SomeClass.php** | Example PHP class file (SomeClass) |
| src/**AnotherClass.php** | Example PHP class file (AnotherClass) |
| src/**tests/** | Tests directory |
| tests/**SomeClassTest.php** | PHPUnit test case for `SomeClass` (Example class) |
| tests/**AnotherClassTest.php** | PHPUnit test case for `AnotherClass` (Example class) |
| **logs/** | Log files (e.g., code coverage report) |
| **docs/** | Documentation files (e.g., PHPDoc) |
| **vendor/** | Composer vendor directory contains your dependencies |
| **.editorconfig** | IDE coding style settings |
| **.gitignore** | Files and directories that Git should ignore |
| **.htaccess** | Hypertext access file for Apache configuration |
| **composer.json** | Composer dependencies |
| **composer.lock** | Composer lock file |
| **phpunit.xml.dist** | PHPUnit configuration file |
| **LICENSE** | License document |
| **CONTRIBUTING.md** | Contributing guidelines |
| **README.md** | This document |

## Getting Started

Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
"PhpSceleto\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"PhpSceleto\\Tests\\": "tests/"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
Expand Down
4 changes: 2 additions & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</include>
</coverage>
<testsuites>
<testsuite name="PHP Sceleto Test Suite">
<directory>./src/tests</directory>
<testsuite name="Test Suite">
<directory>./tests</directory>
</testsuite>
</testsuites>
</phpunit>
File renamed without changes.

0 comments on commit 1f21c42

Please sign in to comment.