File: requires-phpunit.phpt

package info (click to toggle)
phpunit 12.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,180 kB
  • sloc: php: 102,523; xml: 2,166; makefile: 107; sh: 82
file content (34 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--TEST--
phpunit ../../_files/DataProviderRequiresPhpUnitTest.php
--FILE--
<?php declare(strict_types=1);
$_SERVER['argv'][] = '--do-not-cache-result';
$_SERVER['argv'][] = '--no-configuration';
$_SERVER['argv'][] = '--display-skipped';
$_SERVER['argv'][] = __DIR__ . '/../../_files/DataProviderRequiresPhpUnitTest.php';

require_once __DIR__ . '/../../bootstrap.php';
(new PHPUnit\TextUI\Application)->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

Runtime: %s

S..SS                                                               5 / 5 (100%)

Time: %s, Memory: %s

There were 3 skipped tests:

1) PHPUnit\TestFixture\DataProviderRequiresPhpUnitTest::testWithInvalidDataProvider
PHPUnit < 10 is required.

2) PHPUnit\TestFixture\DataProviderRequiresPhpUnitTest::testWithDataProviderThatThrows
PHPUnit < 10 is required.

3) PHPUnit\TestFixture\DataProviderRequiresPhpUnitTest::testWithDataProviderExternalThatThrows
PHPUnit < 10 is required.

OK, but some tests were skipped!
Tests: 5, Assertions: 2, Skipped: 3.