generated from ergebnis/php-package-template
/
test.phpt
33 lines (21 loc) · 1.1 KB
/
test.phpt
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
--TEST--
With a test case that has setUpBeforeClass(), tearDownAfterClass(), setUp(), assertPreConditions(), and tearDown() methods
--FILE--
<?php
declare(strict_types=1);
use PHPUnit\TextUI;
$_SERVER['argv'][] = '--configuration=test/EndToEnd/Version11/TestCase/Combination/phpunit.xml';
require_once __DIR__ . '/../../../../../vendor/autoload.php';
$application = new TextUI\Application();
$application->run($_SERVER['argv']);
--EXPECTF--
PHPUnit %s
Runtime: %s
Configuration: %s/EndToEnd/Version11/TestCase/Combination/phpunit.xml
Random %seed: %s
... 3 / 3 (100%)
Detected 2 tests that took longer than expected.
1. 0.3%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version11\TestCase\Combination\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#1
2. 0.2%s (0.100) Ergebnis\PHPUnit\SlowTestDetector\Test\EndToEnd\Version11\TestCase\Combination\SleeperTest::testSleeperSleepsLongerThanMaximumDurationFromXmlConfigurationWithDataProvider#0
Time: %s, Memory: %s
OK (3 tests, 3 assertions)