From e2248306be64bd72e1ba87d45ca10d141853222c Mon Sep 17 00:00:00 2001 From: Marc Aschmann Date: Fri, 13 Sep 2024 22:50:13 +0200 Subject: [PATCH] fix test --- Tests/Asm/Ansible/Command/AnsiblePlaybookTest.php | 6 ++++++ composer.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Tests/Asm/Ansible/Command/AnsiblePlaybookTest.php b/Tests/Asm/Ansible/Command/AnsiblePlaybookTest.php index 4f8b7dc..629a175 100644 --- a/Tests/Asm/Ansible/Command/AnsiblePlaybookTest.php +++ b/Tests/Asm/Ansible/Command/AnsiblePlaybookTest.php @@ -603,7 +603,13 @@ public function testExecuteWithCallback(): void public function textExecuteWithTextOutput(): void { + $command = $this->testCreateInstance(); $result = $command + ->play($this->getPlayUri()) + ->user('maschmann') + ->extraVars(['project_release=' . (new DateTime())->getTimestamp()]) + ->limit('test') + ->check() ->execute(null); $this->assertTrue(is_string($result)); diff --git a/composer.json b/composer.json index 18bb8fc..80e4f5c 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,8 @@ }, "require-dev": { "phpunit/phpunit": "^10.0|^11.0", - "mikey179/vfsstream": "^1.6" + "mikey179/vfsstream": "^1.6", + "phpstan/phpstan": "^1.12" }, "autoload": { "psr-4": {