Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.5.1 Ready code #8783

Merged
merged 129 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
adb6986
docs: add changelog and upgrade for v4.5.1
kenjis Apr 7, 2024
4578906
Merge pull request #8724 from kenjis/docs-changelog-4.5.1
kenjis Apr 7, 2024
2e0b16b
docs: fix typo in UG
datamweb Apr 7, 2024
1387b24
Merge pull request #8726 from datamweb/docs-typo-installation
kenjis Apr 8, 2024
16b8eb8
docs: change comment position
kenjis Apr 9, 2024
cd16750
chore: add .htaccess and index.html for consistency
kenjis Apr 9, 2024
c42df32
docs: fix files in "All Changes" in Project Files
kenjis Apr 9, 2024
3020ebb
docs: update RELEASE.md
kenjis Apr 9, 2024
4b2175c
Merge pull request #8733 from kenjis/docs-update-cs-tutorial
kenjis Apr 9, 2024
9fe63a1
docs: fix typo in comment
kenjis Apr 7, 2024
b19523e
docs: add @var for PhpStorm
kenjis Apr 7, 2024
fb2980e
fix: TypeError
kenjis Apr 7, 2024
38ffdde
test: replace empty()
kenjis Apr 9, 2024
522cd74
test: add types and PHPDoc array types
kenjis Apr 9, 2024
d3a03a7
chore: update phpstan-baseline.php
kenjis Apr 9, 2024
e1cf987
fix: TypeError in form()
kenjis Apr 9, 2024
2460faf
docs: make PHPDoc types more precise
kenjis Apr 9, 2024
edb87e8
fix: TypeError when Time is passed to Model
kenjis Apr 9, 2024
2596aec
Merge pull request #8734 from kenjis/add-htaccess-index.html
kenjis Apr 9, 2024
d344ab6
Merge pull request #8735 from kenjis/docs-fix-upgrade_448
kenjis Apr 9, 2024
26c9fce
fix: update code because of file changes
kenjis Apr 9, 2024
4d2b3fe
Merge pull request #8736 from kenjis/fix-form-helper-type-error
kenjis Apr 9, 2024
17ac8e6
Merge pull request #8727 from kenjis/fix-Toolbar-response-getBody
kenjis Apr 9, 2024
dd85fde
chore: add writable/index.html
kenjis Apr 9, 2024
0d1c6b9
Merge pull request #8740 from kenjis/fix-ClearDebugbar
kenjis Apr 9, 2024
8dccc27
Merge pull request #8738 from kenjis/fix-Model-handling-Time
kenjis Apr 10, 2024
6b6fcaa
Merge pull request #8737 from kenjis/update-RELEASE.md
kenjis Apr 10, 2024
2c524fd
Merge pull request #8731 from kenjis/refactor-test-Registrar.php
kenjis Apr 10, 2024
5e6979b
fix: Cannot declare class Shield\Config\Auth, because the name is alr…
kenjis Apr 10, 2024
5c1d477
test: add return void
kenjis Apr 10, 2024
7008a2d
test: add test to define() and get()
kenjis Apr 10, 2024
ca66cb7
fix: Factories::get() cannot get defined classes
kenjis Apr 10, 2024
cc5eec1
chore: add php-cs-fixer config for tests
kenjis Apr 10, 2024
fa5496c
chore: vendor/bin/phpstan analyze --generate-baseline phpstan-baselin…
kenjis Apr 10, 2024
f7983c1
docs: change desciption to more appropriate
kenjis Apr 10, 2024
a5213fe
test: refactor system/CLI/BaseCommand.php
mcsaygili Apr 9, 2024
5aa01a6
docs: added Config\Feature::$oldFilterOrder to app/Config/Feature.php…
mullernato Apr 10, 2024
2a6591a
Fix doc type ordering in BaseCommand.php following PHPStan guidelines…
mcsaygili Apr 10, 2024
ef71531
refactor: system/View/Plugins.php
mcsaygili Apr 9, 2024
12b5bfa
refactor: system/View/Plugins.php
mcsaygili Apr 10, 2024
8ad4279
Revert index.html
mcsaygili Apr 10, 2024
0ccb63f
Revert index.html
mcsaygili Apr 10, 2024
234dba2
Revert index.html
mcsaygili Apr 10, 2024
393181b
test: add test to pass Stringable to $db->escape()
kenjis Apr 10, 2024
2ae1930
Merge pull request #8746 from kenjis/test-add-return-void
kenjis Apr 10, 2024
584a96a
Merge pull request #8749 from mullernato/patch-2
kenjis Apr 10, 2024
3866007
Merge pull request #8747 from kenjis/docs-upgrade_450-wording
kenjis Apr 10, 2024
4ac163d
fix: $db->escape() does not accept Stringable
kenjis Apr 10, 2024
63a8aaa
fix: $db->escapeString() does not accept Stringable
kenjis Apr 10, 2024
bd936e3
docs: update @param type
kenjis Apr 11, 2024
0337ce3
docs: replace @preperty with @property-read
kenjis Apr 10, 2024
c1ec70f
refactor: implement Stringable
kenjis Apr 10, 2024
e14e145
Merge pull request #8741 from mcsaygili/refactor-system-CLI-BaseComma…
kenjis Apr 11, 2024
51c1ee1
test: add tests for CSRF protection
kenjis Apr 8, 2024
7e03d7f
test: fix test method names
kenjis Apr 8, 2024
a45342a
test: rename variable names
kenjis Apr 11, 2024
b936fcc
fix: CURLRequest has multiple headers for Content-Type
kenjis Apr 11, 2024
9ba3fea
test: fix incorrect sample HTTP responses
kenjis Apr 11, 2024
7a552d3
test: fix incorrect type definition
kenjis Apr 11, 2024
f06002e
Update system/View/Plugins.php
mcsaygili Apr 11, 2024
b3caaf9
Update system/View/Plugins.php
mcsaygili Apr 11, 2024
feca8b5
Update system/View/Plugins.php
mcsaygili Apr 11, 2024
4422504
Update system/View/Plugins.php
mcsaygili Apr 11, 2024
7034868
Update system/View/Plugins.php
mcsaygili Apr 11, 2024
8e39647
docs: Update routing.rst
Apr 11, 2024
48be4ac
Merge pull request #8744 from kenjis/fix-Factories-cannot-get-defined…
kenjis Apr 11, 2024
59ec72d
Merge pull request #8756 from kenjis/fix-BaseConnection-escape-TypeError
kenjis Apr 11, 2024
460466c
Merge pull request #8760 from kenjis/fix-CURLRequest-getHeaderLine-Co…
kenjis Apr 11, 2024
631f9ab
fix: construct param $config is not used
kenjis Apr 11, 2024
ae1c187
Merge pull request #8765 from obozdag/patch-1
kenjis Apr 11, 2024
b63176e
docs: add links to change log
kenjis Apr 11, 2024
91e0861
docs: add sub section "Upgrading to a Specified Version"
kenjis Apr 11, 2024
da8a486
docs: fix by proofreading
kenjis Apr 11, 2024
42c8ad5
docs: add section "Installing Previous Versions" and note
kenjis Apr 11, 2024
a1d45c1
refactor: improve error message
kenjis Apr 12, 2024
cd6b587
chore: update phpstan-baseline
kenjis Apr 12, 2024
ea7c719
Merge pull request #8761 from kenjis/fix-CURLRequest-unused-construct…
kenjis Apr 12, 2024
5f35f88
test: sync two test cases
kenjis Apr 11, 2024
110798b
test: replace test class names
kenjis Apr 11, 2024
83be00a
test: refactoring with inheritance
kenjis Apr 11, 2024
c6c4f81
docs: add array types
kenjis Apr 11, 2024
0bb4414
fix: not work for minior update
kenjis Apr 12, 2024
22e3450
Merge pull request #8742 from mcsaygili/refactor-system-View-Plugins.php
kenjis Apr 12, 2024
349507d
refactor: fix method name (should be lc first)
kenjis Apr 11, 2024
7f86e00
test: add test cases
kenjis Apr 11, 2024
999f7e4
docs: remove unneeded space
kenjis Apr 12, 2024
4d5e012
Merge pull request #8758 from kenjis/fix-View-Plugins-ValidationErrors
kenjis Apr 12, 2024
9ae7f43
refactor: update param name
kenjis Apr 12, 2024
c02ce68
docs: make array type more precise
kenjis Apr 12, 2024
3cd7572
refactor: add return type
kenjis Apr 12, 2024
b744338
chore: update phpstan-baseline
kenjis Apr 12, 2024
011c886
Merge pull request #8743 from kenjis/fix-FormHelperTest
kenjis Apr 12, 2024
ba4d372
docs: add method stubs to sample Model code
kenjis Apr 12, 2024
fd782e7
refactor: system/Debug/Toolbar/Collectors/Routes.php
mcsaygili Apr 10, 2024
528e513
apply suggestions.
mcsaygili Apr 12, 2024
fb9607c
Merge pull request #8751 from mcsaygili/refactor-system-Debug-Toolbar…
kenjis Apr 12, 2024
774cbd5
Merge pull request #8763 from kenjis/refactor-CURLRequest-tests
kenjis Apr 12, 2024
73ffc06
Merge pull request #8766 from kenjis/fix-ExceptionHandler-error-msg
kenjis Apr 12, 2024
6834870
Merge pull request #8769 from kenjis/fix-create-new-changelog.php
kenjis Apr 12, 2024
04394c6
Merge pull request #8770 from kenjis/fix-type-FabricatorModel
kenjis Apr 12, 2024
678bfd2
docs: fix by proofreading
kenjis Apr 12, 2024
bdf9cea
docs: add README.md
kenjis Apr 13, 2024
60f54c0
docs: remove unneeded "`"
kenjis Apr 13, 2024
b323702
refactory: remove unneeded `px`
kenjis Apr 13, 2024
cd6ba48
fix: add padding and font-family
kenjis Apr 13, 2024
8a76cb6
chore: move PHPUnit cache to build/
kenjis Apr 13, 2024
b865586
docs: fix Postgre DSN sample
kenjis Apr 13, 2024
7b3a01a
chore: change coding style
kenjis Apr 13, 2024
930a44f
chore: change coding style
kenjis Apr 13, 2024
fc303da
chore: update PHPUnit schema version
kenjis Apr 13, 2024
3b1ed37
chore: move PHPUnit cache to build/
kenjis Apr 13, 2024
6015936
chore: change attribute order
kenjis Apr 13, 2024
43889b1
chore: add default attributes to coverage
kenjis Apr 13, 2024
e7fca57
chore: move <source> up
kenjis Apr 13, 2024
2c112a6
chore: add CODEIGNITER_SCREAM_DEPRECATIONS but disabled
kenjis Apr 13, 2024
754309e
chore: update .gitignore
kenjis Apr 13, 2024
666c8fc
Merge pull request #8745 from kenjis/fix-findQualifiedNameFromPath-Ca…
kenjis Apr 13, 2024
9f850f7
fix: Cannot declare class CodeIgniter\Config\Services, because the na…
kenjis Apr 13, 2024
2713cc4
Merge pull request #8759 from kenjis/docs-upgrading
kenjis Apr 13, 2024
d4f1514
docs: Small typo in routing.rst
Apr 13, 2024
c6de161
docs: Small typo in controllers.rst
Apr 13, 2024
378e9dc
Merge pull request #8777 from obozdag/patch-3
samsonasik Apr 13, 2024
792e619
Merge pull request #8778 from obozdag/patch-2
samsonasik Apr 13, 2024
8263e08
Merge pull request #8772 from kenjis/fix-toolbar-css
kenjis Apr 13, 2024
189e109
Merge pull request #8773 from kenjis/fix-phpunit-cache-dir
kenjis Apr 13, 2024
898965a
Merge pull request #8776 from kenjis/fix-findQualifiedNameFromPath-Ca…
kenjis Apr 13, 2024
3b12c44
Merge pull request #8774 from kenjis/docs-fix-Postgre-DSN
kenjis Apr 14, 2024
0922318
Prep for 4.5.1 release
kenjis Apr 14, 2024
2b77a0b
Merge pull request #8782 from kenjis/release-4.5.1
kenjis Apr 14, 2024
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
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ writable/uploads/*
!writable/uploads/index.html

writable/debugbar/*
!writable/debugbar/.gitkeep
!writable/debugbar/index.html

writable/**/*.db
writable/**/*.sqlite
Expand Down Expand Up @@ -125,7 +125,5 @@ nb-configuration.xml

/results/
/phpunit*.xml
/.phpunit.*.cache
/.phpunit.cache

/.php-cs-fixer.php
5 changes: 1 addition & 4 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
->files()
->in([
__DIR__ . '/system',
__DIR__ . '/tests',
__DIR__ . '/utils',
])
->exclude([
Expand All @@ -30,14 +29,12 @@
'Validation/Views',
])
->notPath([
'_support/View/Cells/multiplier.php',
'_support/View/Cells/colors.php',
'_support/View/Cells/addition.php',
])
->notName('#Foobar.php$#')
->append([
__FILE__,
__DIR__ . '/.php-cs-fixer.no-header.php',
__DIR__ . '/.php-cs-fixer.tests.php',
__DIR__ . '/.php-cs-fixer.user-guide.php',
__DIR__ . '/rector.php',
__DIR__ . '/spark',
Expand Down
57 changes: 57 additions & 0 deletions .php-cs-fixer.tests.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php

declare(strict_types=1);

/**
* This file is part of CodeIgniter 4 framework.
*
* (c) CodeIgniter Foundation <[email protected]>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/

use CodeIgniter\CodingStandard\CodeIgniter4;
use Nexus\CsConfig\Factory;
use Nexus\CsConfig\Fixer\Comment\NoCodeSeparatorCommentFixer;
use Nexus\CsConfig\FixerGenerator;
use PhpCsFixer\Finder;

$finder = Finder::create()
->files()
->in([
__DIR__ . '/tests',
])
->exclude([
])
->notPath([
'_support/View/Cells/multiplier.php',
'_support/View/Cells/colors.php',
'_support/View/Cells/addition.php',
])
->notName('#Foobar.php$#')
->append([
]);

$overrides = [
'void_return' => true,
];

$options = [
'cacheFile' => 'build/.php-cs-fixer.tests.cache',
'finder' => $finder,
];

$config = Factory::create(new CodeIgniter4(), $overrides, $options)->forLibrary(
'CodeIgniter 4 framework',
'CodeIgniter Foundation',
'[email protected]'
);

$config
->registerCustomFixers(FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'))
->setRules(array_merge($config->getRules(), [
NoCodeSeparatorCommentFixer::name() => true,
]));

return $config;
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# Changelog

## [v4.5.1](https://github.com/codeigniter4/CodeIgniter4/tree/v4.5.1) (2024-04-14)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.5.0...v4.5.1)

### Fixed Bugs

* fix: TypeError in form() by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8736
* fix: [DebugBar] TypeError in Toolbar by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8727
* fix: TypeError when Time is passed to Model by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8738
* docs: added Config\Feature::$oldFilterOrder to app/Config/Feature.php… by @mullernato in https://github.com/codeigniter4/CodeIgniter4/pull/8749
* fix: Factories::get() cannot get defined classes by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8744
* fix: `BaseConnection::escape()` does not accept Stringable by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8756
* fix: [CURLRequest] `getHeaderLine('Content-Type')` causes InvalidArgumentException by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8760
* fix: [CURLRequest] construct param $config is not used by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8761
* fix: [FileLocator] Cannot declare class XXX, because the name is already in use by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8745
* fix: [DebugBar] Toolbar display may be broken by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8772
* fix: Cannot declare class CodeIgniter\Config\Services, because the name is already in use by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8776
* docs: fix Postgre DSN sample by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8774

### Refactoring

* test: refactor Config/Registrar.php by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8731
* test: add return void by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8746
* refactor: system/CLI/BaseCommand.php by @mcsaygili in https://github.com/codeigniter4/CodeIgniter4/pull/8741
* refactor: system/View/Plugins.php by @mcsaygili in https://github.com/codeigniter4/CodeIgniter4/pull/8742
* refactor: fix method name `ValidationErrors` in View\Plugins by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8758
* refactor: system/Debug/Toolbar/Collectors/Routes.php by @mcsaygili in https://github.com/codeigniter4/CodeIgniter4/pull/8751
* refactor: improve error message in BaseExceptionHandler by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8766
* refactor: FabricatorModel by @kenjis in https://github.com/codeigniter4/CodeIgniter4/pull/8770

## [v4.5.0](https://github.com/codeigniter4/CodeIgniter4/tree/v4.5.0) (2024-04-07)
[Full Changelog](https://github.com/codeigniter4/CodeIgniter4/compare/v4.4.8...v4.5.0)

Expand Down
17 changes: 9 additions & 8 deletions admin/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Documentation guide based on the releases of `4.0.5` and `4.1.0` on January 31, 2021.
>
> Updated for `4.4.3` on October 27, 2023.
> Updated for `4.5.0` on April 7, 2024.
>
> -MGatner, kenjis

Expand All @@ -25,10 +25,10 @@ git push upstream HEAD
If you release a new minor version.

* [ ] Create PR to merge `4.x` into `develop` and merge it
* [ ] Rename the current minor version (e.g., `4.4`) in Setting > Branches >
"Branch protection rules" to the next minor version. E.g. `4.4` → `4.5`
* [ ] Rename the current minor version (e.g., `4.5`) in Setting > Branches >
"Branch protection rules" to the next minor version. E.g. `4.5` → `4.6`
* [ ] Delete the merged `4.x` branch (This closes all PRs to the branch)
* [ ] Do the regular release process. Go to the next "Changelog" section
* Do the regular release process. Go to the next "Changelog" section

## Changelog

Expand Down Expand Up @@ -91,10 +91,11 @@ Work off direct clones of the repos so the release branches persist for a time.
* [ ] Update **user_guide_src/source/changelogs/v4.x.x.rst**
* Remove the section titles that have no items
* [ ] Update **user_guide_src/source/installation/upgrade_{ver}.rst**
* fill in the "All Changes" section, and add it to **upgrading.rst**
* git diff --name-status origin/master -- . ':!system'
* Remove the section titles that have no items
* [Minor version only] Update the "from" version in the title. E.g., `from 4.3.x` → `from 4.3.8`
* [ ] fill in the "All Changes" section, and add it to **upgrading.rst**
* git diff --name-status origin/master -- . ':!system' ':!tests' ':!user_guide_src'
* Note: `tests/` is not used for distribution repos. See `admin/starter/tests/`
* [ ] Remove the section titles that have no items
* [ ] [Minor version only] Update the "from" version in the title. E.g., `from 4.3.x` → `from 4.3.8`
* [ ] Run `php admin/prepare-release.php 4.x.x` and push to origin
* The above command does the following:
* Create a new branch `release-4.x.x`
Expand Down
4 changes: 3 additions & 1 deletion admin/create-new-changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ function replace_file_content(string $path, string $pattern, string $replace): v
$isMinorUpdate = ($minorCurrent !== $minor);

// Creates a branch for release.
system('git switch develop');
if (! $isMinorUpdate) {
system('git switch develop');
}
system('git switch -c docs-changelog-' . $version);
system('git switch docs-changelog-' . $version);

Expand Down
1 change: 1 addition & 0 deletions admin/css/debug-toolbar/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See [contributing/css.md](../../../contributing/css.md).
6 changes: 4 additions & 2 deletions admin/css/debug-toolbar/toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
width: 36px;

// Spacing
margin: 0px;
padding: 0px;
margin: 0;
padding: 0;

// Content
clear: both;
Expand Down Expand Up @@ -85,6 +85,8 @@
display: flex;
font-weight: normal;
margin: 0 0 0 auto;
padding: 0;
font-family: $base-font;

svg {
width: 16px;
Expand Down
2 changes: 0 additions & 2 deletions admin/framework/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,3 @@ nb-configuration.xml

/results/
/phpunit*.xml
/.phpunit.*.cache

107 changes: 61 additions & 46 deletions admin/framework/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,48 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="system/Test/bootstrap.php" backupGlobals="false" colors="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
<coverage includeUncoveredFiles="true">
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/logs/html"/>
<php outputFile="build/logs/coverage.serialized"/>
<text outputFile="php://stdout" showUncoveredFiles="false"/>
</report>
</coverage>
<testsuites>
<testsuite name="App">
<directory>./tests</directory>
</testsuite>
</testsuites>
<logging>
<testdoxHtml outputFile="build/logs/testdox.html"/>
<testdoxText outputFile="build/logs/testdox.txt"/>
<junit outputFile="build/logs/logfile.xml"/>
</logging>
<php>
<server name="app.baseURL" value="http://example.com/"/>
<!-- Directory containing phpunit.xml -->
<const name="HOMEPATH" value="./"/>
<!-- Directory containing the Paths config file -->
<const name="CONFIGPATH" value="./app/Config/"/>
<!-- Directory containing the front controller (index.php) -->
<const name="PUBLICPATH" value="./public/"/>
<!-- Database configuration -->
<!-- Uncomment to provide your own database for testing
<env name="database.tests.hostname" value="localhost"/>
<env name="database.tests.database" value="tests"/>
<env name="database.tests.username" value="tests_user"/>
<env name="database.tests.password" value=""/>
<env name="database.tests.DBDriver" value="MySQLi"/>
<env name="database.tests.DBPrefix" value="tests_"/>
-->
</php>
<source>
<include>
<directory suffix=".php">./app</directory>
</include>
<exclude>
<directory suffix=".php">./app/Views</directory>
<file>./app/Config/Routes.php</file>
</exclude>
</source>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="system/Test/bootstrap.php"
backupGlobals="false"
beStrictAboutOutputDuringTests="true"
colors="true"
columns="max"
failOnRisky="true"
failOnWarning="true"
cacheDirectory="build/.phpunit.cache">
<coverage
includeUncoveredFiles="true"
pathCoverage="false"
ignoreDeprecatedCodeUnits="true"
disableCodeCoverageIgnore="true">
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/logs/html"/>
<php outputFile="build/logs/coverage.serialized"/>
<text outputFile="php://stdout" showUncoveredFiles="false"/>
</report>
</coverage>
<testsuites>
<testsuite name="App">
<directory>./tests</directory>
</testsuite>
</testsuites>
<logging>
<testdoxHtml outputFile="build/logs/testdox.html"/>
<testdoxText outputFile="build/logs/testdox.txt"/>
<junit outputFile="build/logs/logfile.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">./app</directory>
</include>
<exclude>
<directory suffix=".php">./app/Views</directory>
<file>./app/Config/Routes.php</file>
</exclude>
</source>
<php>
<server name="app.baseURL" value="http://example.com/"/>
<server name="CODEIGNITER_SCREAM_DEPRECATIONS" value="0"/>
<!-- Directory containing phpunit.xml -->
<const name="HOMEPATH" value="./"/>
<!-- Directory containing the Paths config file -->
<const name="CONFIGPATH" value="./app/Config/"/>
<!-- Directory containing the front controller (index.php) -->
<const name="PUBLICPATH" value="./public/"/>
<!-- Database configuration -->
<!-- Uncomment to provide your own database for testing
<env name="database.tests.hostname" value="localhost"/>
<env name="database.tests.database" value="tests"/>
<env name="database.tests.username" value="tests_user"/>
<env name="database.tests.password" value=""/>
<env name="database.tests.DBDriver" value="MySQLi"/>
<env name="database.tests.DBPrefix" value="tests_"/>
-->
</php>
</phpunit>
2 changes: 0 additions & 2 deletions admin/starter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,3 @@ nb-configuration.xml

/results/
/phpunit*.xml
/.phpunit.*.cache

Loading
Loading