Skip to content

Commit 4f9ecb7

Browse files
committed
Rename class files
1 parent a6bb946 commit 4f9ecb7

File tree

7 files changed

+30
-33
lines changed

7 files changed

+30
-33
lines changed

phpunit.xml.dist

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd"
3-
bootstrap="tests/bootstrap.php"
4-
colors="always"
5-
beStrictAboutTestsThatDoNotTestAnything="true"
6-
beStrictAboutOutputDuringTests="true"
7-
beStrictAboutTestSize="true"
8-
beStrictAboutChangesToGlobalState="false">
9-
<testsuites>
10-
<testsuite>
11-
<directory prefix="spec-" suffix=".php">tests/</directory>
12-
<directory prefix="test-" suffix=".php">tests/</directory>
13-
<directory suffix="Test.php">tests/</directory>
14-
</testsuite>
15-
</testsuites>
2+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/4.8/phpunit.xsd"
3+
bootstrap="tests/bootstrap.php"
4+
backupGlobals="false"
5+
beStrictAboutCoversAnnotation="true"
6+
beStrictAboutOutputDuringTests="true"
7+
beStrictAboutTestsThatDoNotTestAnything="true"
8+
beStrictAboutTodoAnnotatedTests="true"
9+
colors="true"
10+
verbose="true">
11+
<testsuite name="wp-cli/php-cli-tools tests">
12+
<directory prefix="Test" suffix=".php">tests/</directory>
13+
</testsuite>
14+
15+
<filter>
16+
<whitelist processUncoveredFilesFromWhitelist="true">
17+
<directory suffix=".php">lib/</directory>
18+
</whitelist>
19+
</filter>
1620
</phpunit>
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
<?php
22

3-
use cli\Arguments;
4-
use WP_CLI\Tests\TestCase;
5-
63
/**
7-
* Class TestArguments
4+
* Class Test_Arguments
85
* @todo add more tests to increase coverage
96
*
107
* @backupGlobals enabled
118
*/
12-
class TestArguments extends TestCase
9+
class Test_Arguments extends TestCase
1310
{
1411
/**
1512
* Array of expected settings
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

33
use cli\Colors;
4-
use WP_CLI\Tests\TestCase;
5-
class testsCli extends TestCase {
4+
5+
class Test_Cli extends TestCase {
66

77
function set_up() {
88
// Reset enable state
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?php
22

33
use cli\Colors;
4-
use WP_CLI\Tests\TestCase;
54

6-
class testsColors extends TestCase {
5+
class Test_Colors extends TestCase {
76

87
/**
98
* @dataProvider dataColors
10-
*/
9+
*/
1110
function testColors( $str, $color ) {
1211
// Colors enabled.
1312
Colors::enable( true );
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
<?php
22

3-
use cli\Shell;
4-
use WP_CLI\Tests\TestCase;
5-
63
/**
7-
* Class TestShell
4+
* Class Test_Shell
85
*/
9-
class TestShell extends TestCase {
6+
class Test_Shell extends TestCase {
107

118
/**
129
* Test getting TERM columns.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?php
22

3-
use cli\Colors, cli\Table, cli\Table\Ascii;
4-
use WP_CLI\Tests\TestCase;
3+
use cli\Colors;
4+
use cli\Table;
5+
use cli\Table\Ascii;
56

67
/**
78
* Tests for cli\Table
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<?php
22

3+
use cli\Colors;
34
use cli\Streams;
45
use cli\Table;
56
use cli\table\Ascii;
6-
use cli\Colors;
7-
use WP_CLI\Tests\TestCase;
87

98
/**
109
* Class Test_Table_Ascii

0 commit comments

Comments
 (0)