Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Next Next commit
Rename class files
  • Loading branch information
swissspidy committed May 22, 2024
commit 4f9ecb74d2ded9aa9e1c2a3fc98596ac4727fc55
32 changes: 18 additions & 14 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
bootstrap="tests/bootstrap.php"
colors="always"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestSize="true"
beStrictAboutChangesToGlobalState="false">
<testsuites>
<testsuite>
<directory prefix="spec-" suffix=".php">tests/</directory>
<directory prefix="test-" suffix=".php">tests/</directory>
<directory suffix="Test.php">tests/</directory>
</testsuite>
</testsuites>
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/4.8/phpunit.xsd"
bootstrap="tests/bootstrap.php"
backupGlobals="false"
beStrictAboutCoversAnnotation="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTestsThatDoNotTestAnything="true"
beStrictAboutTodoAnnotatedTests="true"
colors="true"
verbose="true">
<testsuite name="wp-cli/php-cli-tools tests">
<directory prefix="Test" suffix=".php">tests/</directory>
</testsuite>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">lib/</directory>
</whitelist>
</filter>
</phpunit>
7 changes: 2 additions & 5 deletions tests/test-arguments.php → tests/Test_Arguments.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?php

use cli\Arguments;
use WP_CLI\Tests\TestCase;

/**
* Class TestArguments
* Class Test_Arguments
* @todo add more tests to increase coverage
*
* @backupGlobals enabled
*/
class TestArguments extends TestCase
class Test_Arguments extends TestCase
{
/**
* Array of expected settings
Expand Down
4 changes: 2 additions & 2 deletions tests/test-cli.php → tests/Test_Cli.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

use cli\Colors;
use WP_CLI\Tests\TestCase;
class testsCli extends TestCase {

class Test_Cli extends TestCase {

function set_up() {
// Reset enable state
Expand Down
5 changes: 2 additions & 3 deletions tests/test-colors.php → tests/Test_Colors.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?php

use cli\Colors;
use WP_CLI\Tests\TestCase;

class testsColors extends TestCase {
class Test_Colors extends TestCase {

/**
* @dataProvider dataColors
*/
*/
function testColors( $str, $color ) {
// Colors enabled.
Colors::enable( true );
Expand Down
7 changes: 2 additions & 5 deletions tests/test-shell.php → tests/Test_Shell.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<?php

use cli\Shell;
use WP_CLI\Tests\TestCase;

/**
* Class TestShell
* Class Test_Shell
*/
class TestShell extends TestCase {
class Test_Shell extends TestCase {

/**
* Test getting TERM columns.
Expand Down
5 changes: 3 additions & 2 deletions tests/test-table.php → tests/Test_Table.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php

use cli\Colors, cli\Table, cli\Table\Ascii;
use WP_CLI\Tests\TestCase;
use cli\Colors;
use cli\Table;
use cli\Table\Ascii;

/**
* Tests for cli\Table
Expand Down
3 changes: 1 addition & 2 deletions tests/test-table-ascii.php → tests/Test_Table_Ascii.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php

use cli\Colors;
use cli\Streams;
use cli\Table;
use cli\table\Ascii;
use cli\Colors;
use WP_CLI\Tests\TestCase;

/**
* Class Test_Table_Ascii
Expand Down