Skip to content

Commit

Permalink
Get tests working on PHPUnit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
efuller committed Jun 20, 2024
1 parent af65ce9 commit 6ae9b90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ node_modules
# Cache files
.phpcs/*.json
.phpunit.result.cache
.phpunit.cache

# Ignore temporary OS files
.DS_Store
Expand Down
10 changes: 5 additions & 5 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="tests/bootstrap.php"
backupGlobals="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="wp-newsletter-builder">
<directory prefix="test-" suffix=".php">tests</directory>
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
</phpunit>
2 changes: 1 addition & 1 deletion tests/test-example.php → tests/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use WP_Newsletter_Builder\Tests\Test_Case;

class Example_Test extends Test_Case {
class ExampleTest extends Test_Case {
public function test_example() {
$this->assertTrue( true );
}
Expand Down

0 comments on commit 6ae9b90

Please sign in to comment.