Skip to content

Commit 1cbdfdb

Browse files
committed
Rename tests directory to match other projects
1 parent 0c08739 commit 1cbdfdb

21 files changed

+9
-9
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/.github/ export-ignore
2-
/test/ export-ignore
2+
/tests/ export-ignore
33
/.editorconfig export-ignore
44
/.gitattributes export-ignore
55
/.gitignore export-ignore

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
.idea
1+
.idea/
22
.phpunit.result.cache
33
.php-cs-fixer.cache
44

55
/vendor/
66
/composer.lock
7-
/test/config.php
7+
/tests/config.php

.php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$finder = PhpCsFixer\Finder::create()
44
->path([
55
'src/',
6-
'test/',
6+
'tests/',
77
])
88
->ignoreVCSIgnored(true)
99
->append([__FILE__])

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ From a console in the working directory, execute `composer test` to run all unit
1111

1212
> [!NOTE]
1313
> By default, database tests will attempt to run on a database named `PeachySQL`.
14-
> To override connection settings, create a `test/config.php` file which returns
14+
> To override connection settings, create a `tests/config.php` file which returns
1515
> an instance of `Config` with the desired property values.
1616
1717
## Formatting and static analysis

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"autoload-dev": {
3434
"psr-4": {
35-
"DevTheorem\\PeachySQL\\Test\\": "test/"
35+
"DevTheorem\\PeachySQL\\Test\\": "tests/"
3636
}
3737
},
3838
"config": {
@@ -41,7 +41,7 @@
4141
"scripts": {
4242
"analyze": "phpstan analyze",
4343
"cs-fix": "php-cs-fixer fix -v",
44-
"test": "phpunit test --bootstrap test/bootstrap.php",
44+
"test": "phpunit tests --bootstrap tests/bootstrap.php",
4545
"test-mssql": "@test --exclude-group mysql --exclude-group pgsql",
4646
"test-mysql": "@test --exclude-group mssql --exclude-group pgsql",
4747
"test-pgsql": "@test --exclude-group mssql --exclude-group mysql",

phpstan.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ parameters:
22
level: 10
33
paths:
44
- src
5-
- test
5+
- tests
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function testException(): void
107107
public function testBlob(): void
108108
{
109109
$db = static::dbProvider();
110-
$img = file_get_contents('test/DevTheorem.png');
110+
$img = file_get_contents(__DIR__ . '/DevTheorem.png');
111111

112112
if ($img === false) {
113113
throw new \Exception('Failed to read image');

0 commit comments

Comments
 (0)