Skip to content

Commit a57d6dd

Browse files
committed
- rename the unit tests folder
1 parent 9d458a0 commit a57d6dd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+9
-9
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"functions.php"
4747
],
4848
"exclude-from-classmap": [
49-
"Tests/"
49+
"tests/"
5050
]
5151
},
5252
"require-dev": {
@@ -55,7 +55,7 @@
5555
},
5656
"autoload-dev": {
5757
"psr-4": {
58-
"Tests\\Koded\\Stdlib\\": "Tests/"
58+
"Tests\\Koded\\Stdlib\\": "tests/"
5959
}
6060
},
6161
"config": {

phpunit.xml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4-
bootstrap="Tests/autoload.php"
4+
bootstrap="tests/autoload.php"
55
verbose="true"
66
colors="true"
77
>
@@ -13,13 +13,13 @@
1313
<directory>bench</directory>
1414
<directory>build</directory>
1515
<directory>vendor</directory>
16-
<directory>Tests</directory>
16+
<directory>tests</directory>
1717
<file>functions-dev.php</file>
1818
</exclude>
1919
</coverage>
2020
<testsuites>
2121
<testsuite name="Koded Standard Library Test Suite">
22-
<directory>./Tests</directory>
22+
<directory>./tests</directory>
2323
</testsuite>
2424
</testsuites>
2525
<!-- code coverage -->
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function test_should_load_options_from_object_fqn()
6868
public function test_should_load_ini_file()
6969
{
7070
$config = new Config;
71-
$config->fromIniFile('Tests/fixtures/config-test.ini');
71+
$config->fromIniFile('tests/fixtures/config-test.ini');
7272
$this->assertSame(include __DIR__ . '/fixtures/expected-ini-data.php', $config->section1);
7373
}
7474

@@ -106,13 +106,13 @@ public function test_should_return_empty_if_env_file_was_not_found()
106106
public function test_should_load_env_file_and_trim_the_namespace()
107107
{
108108
$config = new Config(getcwd());
109-
$config->fromEnvFile('Tests/fixtures/.env', 'KEY_');
109+
$config->fromEnvFile('tests/fixtures/.env', 'KEY_');
110110
$this->assertSame(include __DIR__ . '/fixtures/expected-env-trim-ns.php', env());
111111
}
112112

113113
public function test_should_load_from_env_variable()
114114
{
115-
\putenv('CONFIG_FILE=Tests/fixtures/nested-array.php');
115+
\putenv('CONFIG_FILE=tests/fixtures/nested-array.php');
116116
$config = new Config;
117117
$config->fromEnvVariable('CONFIG_FILE');
118118

@@ -138,7 +138,7 @@ public function test_should_not_populate_global_env_array()
138138

139139
public function test_should_load_ini_file_from_env_variable()
140140
{
141-
\putenv('CONFIG_FILE=Tests/fixtures/config-test.ini');
141+
\putenv('CONFIG_FILE=tests/fixtures/config-test.ini');
142142
$config = new Config;
143143
$config->fromEnvVariable('CONFIG_FILE');
144144

0 commit comments

Comments
 (0)