1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
--TEST--
Test NoAssertionsTestRisky risky test
--SKIPIF--
<?php if ('\\' === DIRECTORY_SEPARATOR && !extension_loaded('mbstring')) die('Skipping on Windows without mbstring');
--FILE--
<?php
$test = realpath(__DIR__.'/FailTests/NoAssertionsTestRisky.php');
passthru('phpunit --fail-on-risky --colors=never '.$test);
?>
--EXPECTF--
PHPUnit %s
%ATesting Symfony\Bridge\PhpUnit\Tests\FailTests\NoAssertionsTestRisky
R. 2 / 2 (100%)
Time: %s, Memory: %s
There was 1 risky test:
1) Symfony\Bridge\PhpUnit\Tests\FailTests\NoAssertionsTestRisky::testOne
This test is annotated with "@doesNotPerformAssertions", but performed 1 assertions
OK, but incomplete, skipped, or risky tests!
Tests: 2, Assertions: 1, Risky: 1.
|