Passed
Push — master ( 972120...1c77fc )
by Michiel
08:19
created

XorConditionTest::test11()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
8
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
10
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
11
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
12
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
13
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14
 *
15
 * This software consists of voluntary contributions made by many individuals
16
 * and is licensed under the LGPL. For more information please see
17
 * <http://phing.info>.
18
 */
19
20
namespace Phing\Tasks\System\Condition;
21
22
use Phing\Support\BuildFileTest;
23
24
/**
25
 * Tests the XorCondition
26
 *
27
 * @author  Siad Ardroumli <[email protected]>
28
 * @package phing.tasks.condition
29
 */
30
class XorConditionTest extends BuildFileTest
31
{
32
    public function setUp(): void
33
    {
34
        $this->configureProject(
35
            PHING_TEST_BASE . '/etc/tasks/system/XorConditionTest.xml'
36
        );
37
    }
38
39
    public function testEmpty()
40
    {
41
        $this->executeTarget(__FUNCTION__);
42
        $this->assertPropertyUnset('isEmpty');
43
    }
44
45
    public function test1()
46
    {
47
        $this->executeTarget(__FUNCTION__);
48
        $this->assertPropertyUnset('testTrue');
49
    }
50
51
    public function test0()
52
    {
53
        $this->executeTarget(__FUNCTION__);
54
        $this->assertPropertyUnset('testFalse');
55
    }
56
57
    public function test10()
58
    {
59
        $this->executeTarget(__FUNCTION__);
60
        $this->assertPropertyUnset('test10');
61
    }
62
63
    public function test01()
64
    {
65
        $this->executeTarget(__FUNCTION__);
66
        $this->assertPropertyUnset('test01');
67
    }
68
69
    public function test00()
70
    {
71
        $this->executeTarget(__FUNCTION__);
72
        $this->assertPropertyUnset('test00');
73
    }
74
75
    public function test11()
76
    {
77
        $this->executeTarget(__FUNCTION__);
78
        $this->assertPropertyUnset('test11');
79
    }
80
}
81