File: expectrisky.phpt

package info (click to toggle)
symfony 5.4.23%2Bdfsg-1%2Bdeb12u4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 78,212 kB
  • sloc: php: 845,908; xml: 5,982; sh: 590; javascript: 578; makefile: 155; pascal: 84
file content (24 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (3)
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.