mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-22 12:53:27 +02:00
Rename TestCase to MonologTestCase (#1953)
This commit is contained in:
@@ -12,12 +12,11 @@
|
||||
namespace Monolog\Handler\Slack;
|
||||
|
||||
use Monolog\Level;
|
||||
use Monolog\Test\TestCase;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\Attributes\DataProvider;
|
||||
|
||||
#[CoversClass(SlackRecord::class)]
|
||||
class SlackRecordTest extends TestCase
|
||||
class SlackRecordTest extends \Monolog\Test\MonologTestCase
|
||||
{
|
||||
public static function dataGetAttachmentColor()
|
||||
{
|
||||
@@ -252,12 +251,12 @@ class SlackRecordTest extends TestCase
|
||||
[
|
||||
[
|
||||
'title' => 'Extra',
|
||||
'value' => sprintf('```%s```', json_encode($extra, JSON_PRETTY_PRINT)),
|
||||
'value' => \sprintf('```%s```', json_encode($extra, JSON_PRETTY_PRINT)),
|
||||
'short' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'Context',
|
||||
'value' => sprintf('```%s```', json_encode($context, JSON_PRETTY_PRINT)),
|
||||
'value' => \sprintf('```%s```', json_encode($context, JSON_PRETTY_PRINT)),
|
||||
'short' => false,
|
||||
],
|
||||
],
|
||||
@@ -306,7 +305,7 @@ class SlackRecordTest extends TestCase
|
||||
],
|
||||
[
|
||||
'title' => 'Tags',
|
||||
'value' => sprintf('```%s```', json_encode($extra['tags'])),
|
||||
'value' => \sprintf('```%s```', json_encode($extra['tags'])),
|
||||
'short' => false,
|
||||
],
|
||||
[
|
||||
@@ -362,12 +361,12 @@ class SlackRecordTest extends TestCase
|
||||
$expected = [
|
||||
[
|
||||
'title' => 'Info',
|
||||
'value' => sprintf('```%s```', json_encode(['author' => 'Jordi'], JSON_PRETTY_PRINT)),
|
||||
'value' => \sprintf('```%s```', json_encode(['author' => 'Jordi'], JSON_PRETTY_PRINT)),
|
||||
'short' => false,
|
||||
],
|
||||
[
|
||||
'title' => 'Tags',
|
||||
'value' => sprintf('```%s```', json_encode(['web'])),
|
||||
'value' => \sprintf('```%s```', json_encode(['web'])),
|
||||
'short' => false,
|
||||
],
|
||||
];
|
||||
|
Reference in New Issue
Block a user