Skip to content

Commit

Permalink
Clean up a few obsolete tests for TestDox and test ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden committed Dec 18, 2018
1 parent a3843da commit ca71d8b
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 241 deletions.
83 changes: 0 additions & 83 deletions tests/_files/DataProviderTestDoxTest.php

This file was deleted.

18 changes: 0 additions & 18 deletions tests/end-to-end/colors-always.phpt

This file was deleted.

33 changes: 0 additions & 33 deletions tests/end-to-end/dataprovider-debug.phpt

This file was deleted.

34 changes: 0 additions & 34 deletions tests/end-to-end/dataprovider-testdox.phpt

This file was deleted.

41 changes: 0 additions & 41 deletions tests/end-to-end/dependencies.phpt

This file was deleted.

File renamed without changes.
File renamed without changes.
25 changes: 0 additions & 25 deletions tests/end-to-end/testdox-verbose.phpt

This file was deleted.

31 changes: 24 additions & 7 deletions tests/end-to-end/testdox.phpt
Expand Up @@ -4,19 +4,36 @@ phpunit --testdox php://stdout BankAccountTest ../../_files/BankAccountTest.php
<?php
$_SERVER['argv'][1] = '--no-configuration';
$_SERVER['argv'][2] = '--testdox';
$_SERVER['argv'][3] = 'BankAccountTest';
$_SERVER['argv'][4] = __DIR__ . '/../_files/BankAccountTest.php';
$_SERVER['argv'][3] = '--colors=never';
$_SERVER['argv'][4] = realpath(__DIR__ . '/../unit/Util/TestDox/ColorTest.php');

require __DIR__ . '/../bootstrap.php';
PHPUnit\TextUI\Command::main();
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

BankAccount
Balance is initially zero
Balance cannot become negative
Balance cannot become negative
Basic ANSI color highlighting support
Colorize with no color
Colorize with one color
Colorize with multiple colors
Colorize path /php/unit/test.phpt after NULL
Colorize path /php/unit/test.phpt after ''
✔ Colorize path /php/unit/test.phpt after /
✔ Colorize path /php/unit/test.phpt after /php/
✔ Colorize path /_d-i.r/t-e_s.t.phpt after ''
✔ dim($m) and colorize('dim',$m) return different ANSI codes
Visualize all whitespace characters in no-spaces
Visualize all whitespace characters in space invaders
Visualize all whitespace characters in indent, space and \n
\r
Visualize whitespace but ignore EOL
Prettify unnamed dataprovider with data set #0
Prettify unnamed dataprovider with data set #1
Prettify named dataprovider with data set "one"
Prettify named dataprovider with data set "two"
TestDox shows name of data set one with value 1
TestDox shows name of data set two with value 2

Time: %s, Memory: %s

OK (3 tests, 3 assertions)
OK (19 tests, 19 assertions)

0 comments on commit ca71d8b

Please sign in to comment.