File tree Expand file tree Collapse file tree 7 files changed +30
-33
lines changed
Expand file tree Collapse file tree 7 files changed +30
-33
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11<?php
22
33use 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
Original file line number Diff line number Diff line change 11<?php
22
33use 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 );
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11<?php
22
3+ use cli \Colors ;
34use cli \Streams ;
45use cli \Table ;
56use cli \table \Ascii ;
6- use cli \Colors ;
7- use WP_CLI \Tests \TestCase ;
87
98/**
109 * Class Test_Table_Ascii
You can’t perform that action at this time.
0 commit comments