12
12
class AnsibleTest extends AnsibleTestCase
13
13
{
14
14
15
- #[CoversFunction('\Asm\Ansible\Ansible::checkCommand ' )]
16
- #[CoversFunction('\Asm\Ansible\Ansible::checkDir ' )]
17
- #[CoversFunction('\Asm\Ansible\Ansible::__construct ' )]
15
+ #[CoversClass(\Asm \Ansible \Ansible::class)]
16
+ #[CoversFunction('checkCommand ' )]
17
+ #[CoversFunction('checkDir ' )]
18
+ #[CoversFunction('__construct ' )]
18
19
public function testInstance ()
19
20
{
20
21
$ ansible = new Ansible (
@@ -25,9 +26,10 @@ public function testInstance()
25
26
$ this ->assertInstanceOf ('\Asm\Ansible\Ansible ' , $ ansible , 'Instantiation with given paths ' );
26
27
}
27
28
28
- #[CoversFunction('\Asm\Ansible\Ansible::checkCommand ' )]
29
- #[CoversFunction('\Asm\Ansible\Ansible::checkDir ' )]
30
- #[CoversFunction('\Asm\Ansible\Ansible::__construct ' )]
29
+ #[CoversClass(\Asm \Ansible \Ansible::class)]
30
+ #[CoversFunction('checkCommand ' )]
31
+ #[CoversFunction('checkDir ' )]
32
+ #[CoversFunction('__construct ' )]
31
33
public function testAnsibleProjectPathNotFoundException ()
32
34
{
33
35
$ this ->expectException (CommandException::class);
@@ -38,9 +40,10 @@ public function testAnsibleProjectPathNotFoundException()
38
40
);
39
41
}
40
42
41
- #[CoversFunction('\Asm\Ansible\Ansible::checkCommand ' )]
42
- #[CoversFunction('\Asm\Ansible\Ansible::checkDir ' )]
43
- #[CoversFunction('\Asm\Ansible\Ansible::__construct ' )]
43
+ #[CoversClass(\Asm \Ansible \Ansible::class)]
44
+ #[CoversFunction('checkCommand ' )]
45
+ #[CoversFunction('checkDir ' )]
46
+ #[CoversFunction('__construct ' )]
44
47
public function testAnsibleCommandNotFoundException ()
45
48
{
46
49
$ this ->expectException (CommandException::class);
@@ -51,9 +54,10 @@ public function testAnsibleCommandNotFoundException()
51
54
);
52
55
}
53
56
54
- #[CoversFunction('\Asm\Ansible\Ansible::checkCommand ' )]
55
- #[CoversFunction('\Asm\Ansible\Ansible::checkDir ' )]
56
- #[CoversFunction('\Asm\Ansible\Ansible::__construct ' )]
57
+ #[CoversClass(\Asm \Ansible \Ansible::class)]
58
+ #[CoversFunction('checkCommand ' )]
59
+ #[CoversFunction('checkDir ' )]
60
+ #[CoversFunction('__construct ' )]
57
61
public function testAnsibleNoCommandGivenException ()
58
62
{
59
63
// TODO: Not sure why the following command should give an error.
@@ -63,9 +67,10 @@ public function testAnsibleNoCommandGivenException()
63
67
// );
64
68
}
65
69
66
- #[CoversFunction('\Asm\Ansible\Ansible::checkCommand ' )]
67
- #[CoversFunction('\Asm\Ansible\Ansible::checkDir ' )]
68
- #[CoversFunction('\Asm\Ansible\Ansible::__construct ' )]
70
+ #[CoversClass(\Asm \Ansible \Ansible::class)]
71
+ #[CoversFunction('checkCommand ' )]
72
+ #[CoversFunction('checkDir ' )]
73
+ #[CoversFunction('__construct ' )]
69
74
public function testAnsibleCommandNotExecutableException ()
70
75
{
71
76
$ this ->expectException (CommandException::class);
@@ -80,11 +85,12 @@ public function testAnsibleCommandNotExecutableException()
80
85
);
81
86
}
82
87
83
- #[CoversFunction('\Asm\Ansible\Ansible::playbook ' )]
84
- #[CoversFunction('\Asm\Ansible\Ansible::createProcess ' )]
85
- #[CoversFunction('\Asm\Ansible\Ansible::checkCommand ' )]
86
- #[CoversFunction('\Asm\Ansible\Ansible::checkDir ' )]
87
- #[CoversFunction('\Asm\Ansible\Ansible::__construct ' )]
88
+ #[CoversClass(\Asm \Ansible \Ansible::class)]
89
+ #[CoversFunction('playbook ' )]
90
+ #[CoversFunction('createProcess ' )]
91
+ #[CoversFunction('checkCommand ' )]
92
+ #[CoversFunction('checkDir ' )]
93
+ #[CoversFunction('__construct ' )]
88
94
public function testPlaybookCommandInstance ()
89
95
{
90
96
$ ansible = new Ansible (
@@ -98,11 +104,12 @@ public function testPlaybookCommandInstance()
98
104
$ this ->assertInstanceOf ('\Asm\Ansible\Command\AnsiblePlaybook ' , $ playbook );
99
105
}
100
106
101
- #[CoversFunction('\Asm\Ansible\Ansible::playbook ' )]
102
- #[CoversFunction('\Asm\Ansible\Ansible::createProcess ' )]
103
- #[CoversFunction('\Asm\Ansible\Ansible::checkCommand ' )]
104
- #[CoversFunction('\Asm\Ansible\Ansible::checkDir ' )]
105
- #[CoversFunction('\Asm\Ansible\Ansible::__construct ' )]
107
+ #[CoversClass(\Asm \Ansible \Ansible::class)]
108
+ #[CoversFunction('playbook ' )]
109
+ #[CoversFunction('createProcess ' )]
110
+ #[CoversFunction('checkCommand ' )]
111
+ #[CoversFunction('checkDir ' )]
112
+ #[CoversFunction('__construct ' )]
106
113
public function testGalaxyCommandInstance ()
107
114
{
108
115
$ ansible = new Ansible (
0 commit comments