Skip to content

Commit

Permalink
add test for depraction warning
Browse files Browse the repository at this point in the history
  • Loading branch information
realFlowControl authored and sebastianbergmann committed Dec 5, 2019
1 parent d38c327 commit e506da1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/end-to-end/cli/deprecation-warning-with-class.phpt
@@ -0,0 +1,19 @@
--TEST--
phpunit DummyFooTest ../../_files/DummyFooTest.php
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][1] = '--no-configuration';
$_SERVER['argv'][2] = 'DummyFooTest';
$_SERVER['argv'][3] = __DIR__ . '/../../_files/DummyFooTest.php';

require __DIR__ . '/../../bootstrap.php';
PHPUnit\TextUI\Command::main();
--EXPECTF--
Warning: Calling PHPUnit with a class name is deprecated and will be removed in PHPUnit 9.
PHPUnit %s by Sebastian Bergmann and contributors.

. 1 / 1 (100%)

Time: %s, Memory: %s

OK (1 test, 1 assertion)

0 comments on commit e506da1

Please sign in to comment.