Skip to content

Commit

Permalink
Migrating to testkit 1.0 and PSR-4 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Feb 23, 2024
1 parent 661493a commit 2f1b0d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require-dev": {
"alleyinteractive/alley-coding-standards": "^2.0",
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
"mantle-framework/testkit": "^0.12"
"mantle-framework/testkit": "^1.0"
},
"config": {
"allow-plugins": {
Expand Down
24 changes: 12 additions & 12 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0"?>
<phpunit
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
printerClass="NunoMaduro\Collision\Adapters\Phpunit\Printer"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.result.cache"
>
<testsuites>
<testsuite name="general">
<directory prefix="test-" suffix=".php">tests</directory>
</testsuite>
</testsuites>
<testsuites>
<testsuite name="general">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Visit {@see https://mantle.alley.co/testing/test-framework.html} to learn more.
*/
class Test_REST_API_Guard extends Test_Case {
class RestApiGuardTest extends Test_Case {
protected function setUp(): void {
parent::setUp();

Expand Down

0 comments on commit 2f1b0d3

Please sign in to comment.