~canonical-sysadmins/wordpress/openstack-objectstorage-k8s

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit/src/Framework/TestListener.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/*
 
3
 * This file is part of PHPUnit.
 
4
 *
 
5
 * (c) Sebastian Bergmann <sebastian@phpunit.de>
 
6
 *
 
7
 * For the full copyright and license information, please view the LICENSE
 
8
 * file that was distributed with this source code.
 
9
 */
 
10
 
 
11
/**
 
12
 * A Listener for test progress.
 
13
 *
 
14
 * @package    PHPUnit
 
15
 * @subpackage Framework
 
16
 * @author     Sebastian Bergmann <sebastian@phpunit.de>
 
17
 * @copyright  Sebastian Bergmann <sebastian@phpunit.de>
 
18
 * @license    http://www.opensource.org/licenses/BSD-3-Clause  The BSD 3-Clause License
 
19
 * @link       http://www.phpunit.de/
 
20
 * @since      Interface available since Release 2.0.0
 
21
 */
 
22
interface PHPUnit_Framework_TestListener
 
23
{
 
24
    /**
 
25
     * An error occurred.
 
26
     *
 
27
     * @param PHPUnit_Framework_Test $test
 
28
     * @param Exception              $e
 
29
     * @param float                  $time
 
30
     */
 
31
    public function addError(PHPUnit_Framework_Test $test, Exception $e, $time);
 
32
 
 
33
    /**
 
34
     * A failure occurred.
 
35
     *
 
36
     * @param PHPUnit_Framework_Test                 $test
 
37
     * @param PHPUnit_Framework_AssertionFailedError $e
 
38
     * @param float                                  $time
 
39
     */
 
40
    public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time);
 
41
 
 
42
    /**
 
43
     * Incomplete test.
 
44
     *
 
45
     * @param PHPUnit_Framework_Test $test
 
46
     * @param Exception              $e
 
47
     * @param float                  $time
 
48
     */
 
49
    public function addIncompleteTest(PHPUnit_Framework_Test $test, Exception $e, $time);
 
50
 
 
51
    /**
 
52
     * Risky test.
 
53
     *
 
54
     * @param PHPUnit_Framework_Test $test
 
55
     * @param Exception              $e
 
56
     * @param float                  $time
 
57
     * @since  Method available since Release 4.0.0
 
58
     */
 
59
    public function addRiskyTest(PHPUnit_Framework_Test $test, Exception $e, $time);
 
60
 
 
61
    /**
 
62
     * Skipped test.
 
63
     *
 
64
     * @param PHPUnit_Framework_Test $test
 
65
     * @param Exception              $e
 
66
     * @param float                  $time
 
67
     * @since  Method available since Release 3.0.0
 
68
     */
 
69
    public function addSkippedTest(PHPUnit_Framework_Test $test, Exception $e, $time);
 
70
 
 
71
    /**
 
72
     * A test suite started.
 
73
     *
 
74
     * @param PHPUnit_Framework_TestSuite $suite
 
75
     * @since  Method available since Release 2.2.0
 
76
     */
 
77
    public function startTestSuite(PHPUnit_Framework_TestSuite $suite);
 
78
 
 
79
    /**
 
80
     * A test suite ended.
 
81
     *
 
82
     * @param PHPUnit_Framework_TestSuite $suite
 
83
     * @since  Method available since Release 2.2.0
 
84
     */
 
85
    public function endTestSuite(PHPUnit_Framework_TestSuite $suite);
 
86
 
 
87
    /**
 
88
     * A test started.
 
89
     *
 
90
     * @param PHPUnit_Framework_Test $test
 
91
     */
 
92
    public function startTest(PHPUnit_Framework_Test $test);
 
93
 
 
94
    /**
 
95
     * A test ended.
 
96
     *
 
97
     * @param PHPUnit_Framework_Test $test
 
98
     * @param float                  $time
 
99
     */
 
100
    public function endTest(PHPUnit_Framework_Test $test, $time);
 
101
}