Skip to content

Commit 0c4dd4f

Browse files
committed
Add Exclude group to Notification test
1 parent 5cef392 commit 0c4dd4f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"phpunit/phpunit": "8.5.*"
3232
},
3333
"scripts": {
34-
"tests": "./vendor/bin/phpunit tests --color=always --stop-on-failure"
34+
"tests": "./vendor/bin/phpunit tests --color=always --stop-on-failure",
35+
"tests-exclude-notification": "./vendor/bin/phpunit tests --color=always --stop-on-failure --exclude-group=notification"
3536
}
3637
}

tests/Notification/SlackNotificationTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
class SlackNotificationTest extends TestCase
1313
{
14+
/**
15+
* @group notification
16+
*/
1417
public static function test_SlackNotification_ShouldNotify(): void
1518
{
1619
$notification = new SlackNotification($notifyText = 'Test Notification', $messageType = MessageTypeEnum::ERROR());

0 commit comments

Comments
 (0)