Skip to content

Commit

Permalink
last try with attribute-foo :eyes_rolling:
Browse files Browse the repository at this point in the history
  • Loading branch information
maschmann committed Sep 13, 2024
1 parent d4f4db3 commit 9440f38
Showing 1 changed file with 6 additions and 32 deletions.
38 changes: 6 additions & 32 deletions Tests/Asm/Ansible/AnsibleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
use PHPUnit\Framework\Attributes\CoversClass;
use PHPUnit\Framework\Attributes\CoversFunction;

#[CoversClass(\Asm\Ansible\Ansible::class)]
#[CoversFunction('playbook')]
#[CoversFunction('createProcess')]
#[CoversFunction('checkCommand')]
#[CoversFunction('checkDir')]
#[CoversFunction('__construct')]
class AnsibleTest extends AnsibleTestCase
{

#[CoversClass(\Asm\Ansible\Ansible::class)]
#[CoversFunction('checkCommand')]
#[CoversFunction('checkDir')]
#[CoversFunction('__construct')]
public function testInstance()
{
$ansible = new Ansible(
Expand All @@ -27,10 +29,6 @@ public function testInstance()
$this->assertInstanceOf('\Asm\Ansible\Ansible', $ansible, 'Instantiation with given paths');
}

#[CoversClass(\Asm\Ansible\Ansible::class)]
#[CoversFunction('checkCommand')]
#[CoversFunction('checkDir')]
#[CoversFunction('__construct')]
public function testAnsibleProjectPathNotFoundException()
{
$this->expectException(CommandException::class);
Expand All @@ -41,10 +39,6 @@ public function testAnsibleProjectPathNotFoundException()
);
}

#[CoversClass(\Asm\Ansible\Ansible::class)]
#[CoversFunction('checkCommand')]
#[CoversFunction('checkDir')]
#[CoversFunction('__construct')]
public function testAnsibleCommandNotFoundException()
{
$this->expectException(CommandException::class);
Expand All @@ -55,10 +49,6 @@ public function testAnsibleCommandNotFoundException()
);
}

#[CoversClass(\Asm\Ansible\Ansible::class)]
#[CoversFunction('checkCommand')]
#[CoversFunction('checkDir')]
#[CoversFunction('__construct')]
public function testAnsibleNoCommandGivenException()
{
// TODO: Not sure why the following command should give an error.
Expand All @@ -68,10 +58,6 @@ public function testAnsibleNoCommandGivenException()
// );
}

#[CoversClass(\Asm\Ansible\Ansible::class)]
#[CoversFunction('checkCommand')]
#[CoversFunction('checkDir')]
#[CoversFunction('__construct')]
public function testAnsibleCommandNotExecutableException()
{
$this->expectException(CommandException::class);
Expand All @@ -86,12 +72,6 @@ public function testAnsibleCommandNotExecutableException()
);
}

#[CoversClass(\Asm\Ansible\Ansible::class)]
#[CoversFunction('playbook')]
#[CoversFunction('createProcess')]
#[CoversFunction('checkCommand')]
#[CoversFunction('checkDir')]
#[CoversFunction('__construct')]
public function testPlaybookCommandInstance()
{
$ansible = new Ansible(
Expand All @@ -105,12 +85,6 @@ public function testPlaybookCommandInstance()
$this->assertInstanceOf('\Asm\Ansible\Command\AnsiblePlaybook', $playbook);
}

#[CoversClass(\Asm\Ansible\Ansible::class)]
#[CoversFunction('playbook')]
#[CoversFunction('createProcess')]
#[CoversFunction('checkCommand')]
#[CoversFunction('checkDir')]
#[CoversFunction('__construct')]
public function testGalaxyCommandInstance()
{
$ansible = new Ansible(
Expand Down

0 comments on commit 9440f38

Please sign in to comment.