Merge branch '5.2' into 5.x
* 5.2: [Notifier] CS fix [VarDumper] dont hide any nodes until JS is proven to work
This commit is contained in:
commit
7617506f28
@ -19,7 +19,7 @@ use Symfony\Component\Notifier\Transport\Dsn;
|
||||
|
||||
final class InfobipTransportFactoryTest extends TestCase
|
||||
{
|
||||
public function testCreateWithDsn(): void
|
||||
public function testCreateWithDsn()
|
||||
{
|
||||
$factory = new InfobipTransportFactory();
|
||||
|
||||
@ -30,7 +30,7 @@ final class InfobipTransportFactoryTest extends TestCase
|
||||
$this->assertSame('infobip://host.test?from=0611223344', (string) $transport);
|
||||
}
|
||||
|
||||
public function testCreateWithNoFromThrowsMalformed(): void
|
||||
public function testCreateWithNoFromThrowsMalformed()
|
||||
{
|
||||
$factory = new InfobipTransportFactory();
|
||||
|
||||
@ -40,7 +40,7 @@ final class InfobipTransportFactoryTest extends TestCase
|
||||
$factory->create(Dsn::fromString($dsnIncomplete));
|
||||
}
|
||||
|
||||
public function testSupportsInfobipScheme(): void
|
||||
public function testSupportsInfobipScheme()
|
||||
{
|
||||
$factory = new InfobipTransportFactory();
|
||||
|
||||
@ -51,7 +51,7 @@ final class InfobipTransportFactoryTest extends TestCase
|
||||
$this->assertFalse($factory->supports(Dsn::fromString($dsnUnsupported)));
|
||||
}
|
||||
|
||||
public function testNonInfobipSchemeThrows(): void
|
||||
public function testNonInfobipSchemeThrows()
|
||||
{
|
||||
$factory = new InfobipTransportFactory();
|
||||
|
||||
|
@ -20,14 +20,14 @@ use Symfony\Contracts\HttpClient\HttpClientInterface;
|
||||
|
||||
final class InfobipTransportTest extends TestCase
|
||||
{
|
||||
public function testToStringContainsProperties(): void
|
||||
public function testToStringContainsProperties()
|
||||
{
|
||||
$transport = $this->getTransport();
|
||||
|
||||
$this->assertSame('infobip://host.test?from=0611223344', (string) $transport);
|
||||
}
|
||||
|
||||
public function testSupportsMessageInterface(): void
|
||||
public function testSupportsMessageInterface()
|
||||
{
|
||||
$transport = $this->getTransport();
|
||||
|
||||
@ -35,7 +35,7 @@ final class InfobipTransportTest extends TestCase
|
||||
$this->assertFalse($transport->supports($this->createMock(MessageInterface::class)));
|
||||
}
|
||||
|
||||
public function testSendNonSmsMessageThrowsException(): void
|
||||
public function testSendNonSmsMessageThrowsException()
|
||||
{
|
||||
$transport = $this->getTransport();
|
||||
|
||||
|
@ -10,7 +10,7 @@ use Symfony\Component\Notifier\Transport\Dsn;
|
||||
|
||||
final class LinkedInTransportFactoryTest extends TestCase
|
||||
{
|
||||
public function testCreateWithDsn(): void
|
||||
public function testCreateWithDsn()
|
||||
{
|
||||
$factory = new LinkedInTransportFactory();
|
||||
|
||||
@ -21,7 +21,7 @@ final class LinkedInTransportFactoryTest extends TestCase
|
||||
$this->assertSame('linkedin://testHost', (string) $transport);
|
||||
}
|
||||
|
||||
public function testSupportsLinkedinScheme(): void
|
||||
public function testSupportsLinkedinScheme()
|
||||
{
|
||||
$factory = new LinkedInTransportFactory();
|
||||
|
||||
@ -29,7 +29,7 @@ final class LinkedInTransportFactoryTest extends TestCase
|
||||
$this->assertFalse($factory->supports(Dsn::fromString('somethingElse://host/path')));
|
||||
}
|
||||
|
||||
public function testNonLinkedinSchemeThrows(): void
|
||||
public function testNonLinkedinSchemeThrows()
|
||||
{
|
||||
$factory = new LinkedInTransportFactory();
|
||||
|
||||
@ -39,7 +39,7 @@ final class LinkedInTransportFactoryTest extends TestCase
|
||||
$factory->create(Dsn::fromString($dsn));
|
||||
}
|
||||
|
||||
public function testIncompleteDsnMissingUserThrows(): void
|
||||
public function testIncompleteDsnMissingUserThrows()
|
||||
{
|
||||
$factory = new LinkedInTransportFactory();
|
||||
|
||||
|
@ -17,12 +17,12 @@ use Symfony\Contracts\HttpClient\ResponseInterface;
|
||||
|
||||
final class LinkedInTransportTest extends TestCase
|
||||
{
|
||||
public function testToString(): void
|
||||
public function testToString()
|
||||
{
|
||||
$this->assertSame(sprintf('linkedin://host.test'), (string) $this->getTransport());
|
||||
}
|
||||
|
||||
public function testSupportsChatMessage(): void
|
||||
public function testSupportsChatMessage()
|
||||
{
|
||||
$transport = $this->getTransport();
|
||||
|
||||
@ -30,7 +30,7 @@ final class LinkedInTransportTest extends TestCase
|
||||
$this->assertFalse($transport->supports($this->createMock(MessageInterface::class)));
|
||||
}
|
||||
|
||||
public function testSendNonChatMessageThrows(): void
|
||||
public function testSendNonChatMessageThrows()
|
||||
{
|
||||
$transport = $this->getTransport();
|
||||
|
||||
@ -39,7 +39,7 @@ final class LinkedInTransportTest extends TestCase
|
||||
$transport->send($this->createMock(MessageInterface::class));
|
||||
}
|
||||
|
||||
public function testSendWithEmptyArrayResponseThrows(): void
|
||||
public function testSendWithEmptyArrayResponseThrows()
|
||||
{
|
||||
$this->expectException(TransportException::class);
|
||||
|
||||
@ -60,7 +60,7 @@ final class LinkedInTransportTest extends TestCase
|
||||
$transport->send(new ChatMessage('testMessage'));
|
||||
}
|
||||
|
||||
public function testSendWithErrorResponseThrows(): void
|
||||
public function testSendWithErrorResponseThrows()
|
||||
{
|
||||
$this->expectException(TransportException::class);
|
||||
$this->expectExceptionMessage('testErrorCode');
|
||||
@ -83,7 +83,7 @@ final class LinkedInTransportTest extends TestCase
|
||||
$transport->send(new ChatMessage('testMessage'));
|
||||
}
|
||||
|
||||
public function testSendWithOptions(): void
|
||||
public function testSendWithOptions()
|
||||
{
|
||||
$message = 'testMessage';
|
||||
|
||||
@ -127,7 +127,7 @@ final class LinkedInTransportTest extends TestCase
|
||||
$transport->send(new ChatMessage($message));
|
||||
}
|
||||
|
||||
public function testSendWithNotification(): void
|
||||
public function testSendWithNotification()
|
||||
{
|
||||
$message = 'testMessage';
|
||||
|
||||
@ -175,7 +175,7 @@ final class LinkedInTransportTest extends TestCase
|
||||
$transport->send($chatMessage);
|
||||
}
|
||||
|
||||
public function testSendWithInvalidOptions(): void
|
||||
public function testSendWithInvalidOptions()
|
||||
{
|
||||
$this->expectException(LogicException::class);
|
||||
|
||||
|
@ -16,7 +16,7 @@ use Symfony\Component\Notifier\Bridge\Slack\Block\SlackActionsBlock;
|
||||
|
||||
final class SlackActionsBlockTest extends TestCase
|
||||
{
|
||||
public function testCanBeInstantiated(): void
|
||||
public function testCanBeInstantiated()
|
||||
{
|
||||
$actions = new SlackActionsBlock();
|
||||
$actions->button('first button text', 'https://example.org')
|
||||
@ -47,7 +47,7 @@ final class SlackActionsBlockTest extends TestCase
|
||||
], $actions->toArray());
|
||||
}
|
||||
|
||||
public function testThrowsWhenFieldsLimitReached(): void
|
||||
public function testThrowsWhenFieldsLimitReached()
|
||||
{
|
||||
$section = new SlackActionsBlock();
|
||||
for ($i = 0; $i < 25; ++$i) {
|
||||
|
@ -16,7 +16,7 @@ use Symfony\Component\Notifier\Bridge\Slack\Block\SlackContextBlock;
|
||||
|
||||
final class SlackContextBlockTest extends TestCase
|
||||
{
|
||||
public function testCanBeInstantiated(): void
|
||||
public function testCanBeInstantiated()
|
||||
{
|
||||
$context = new SlackContextBlock();
|
||||
$context->text('context text without emoji', false, false);
|
||||
@ -47,7 +47,7 @@ final class SlackContextBlockTest extends TestCase
|
||||
], $context->toArray());
|
||||
}
|
||||
|
||||
public function testThrowsWhenElementsLimitReached(): void
|
||||
public function testThrowsWhenElementsLimitReached()
|
||||
{
|
||||
$context = new SlackContextBlock();
|
||||
for ($i = 0; $i < 10; ++$i) {
|
||||
|
@ -17,7 +17,7 @@ use Symfony\Component\Notifier\Exception\LogicException;
|
||||
|
||||
final class SlackHeaderBlockTest extends TestCase
|
||||
{
|
||||
public function testCanBeInstantiated(): void
|
||||
public function testCanBeInstantiated()
|
||||
{
|
||||
$header = new SlackHeaderBlock('header text');
|
||||
$header->id('header_id');
|
||||
@ -32,7 +32,7 @@ final class SlackHeaderBlockTest extends TestCase
|
||||
], $header->toArray());
|
||||
}
|
||||
|
||||
public function testThrowsWhenTextExceedsCharacterLimit(): void
|
||||
public function testThrowsWhenTextExceedsCharacterLimit()
|
||||
{
|
||||
$this->expectException(LogicException::class);
|
||||
$this->expectExceptionMessage('Maximum length for the text is 150 characters.');
|
||||
@ -40,7 +40,7 @@ final class SlackHeaderBlockTest extends TestCase
|
||||
new SlackHeaderBlock(str_repeat('h', 151));
|
||||
}
|
||||
|
||||
public function testThrowsWhenBlockIdExceedsCharacterLimit(): void
|
||||
public function testThrowsWhenBlockIdExceedsCharacterLimit()
|
||||
{
|
||||
$this->expectException(LogicException::class);
|
||||
$this->expectExceptionMessage('Maximum length for the block id is 255 characters.');
|
||||
|
@ -17,7 +17,7 @@ use Symfony\Component\Notifier\Bridge\Slack\Block\SlackSectionBlock;
|
||||
|
||||
final class SlackSectionBlockTest extends TestCase
|
||||
{
|
||||
public function testCanBeInstantiated(): void
|
||||
public function testCanBeInstantiated()
|
||||
{
|
||||
$section = new SlackSectionBlock();
|
||||
$section->text('section text');
|
||||
@ -44,7 +44,7 @@ final class SlackSectionBlockTest extends TestCase
|
||||
], $section->toArray());
|
||||
}
|
||||
|
||||
public function testThrowsWhenFieldsLimitReached(): void
|
||||
public function testThrowsWhenFieldsLimitReached()
|
||||
{
|
||||
$section = new SlackSectionBlock();
|
||||
for ($i = 0; $i < 10; ++$i) {
|
||||
|
@ -171,6 +171,9 @@ var refStyle = doc.createElement('style'),
|
||||
e.addEventListener(n, cb, false);
|
||||
};
|
||||
|
||||
refStyle.innerHTML = 'pre.sf-dump .sf-dump-compact, .sf-dump-str-collapse .sf-dump-str-collapse, .sf-dump-str-expand .sf-dump-str-expand { display: none; }';
|
||||
(doc.documentElement.firstElementChild || doc.documentElement.children[0]).appendChild(refStyle);
|
||||
refStyle = doc.createElement('style');
|
||||
(doc.documentElement.firstElementChild || doc.documentElement.children[0]).appendChild(refStyle);
|
||||
|
||||
if (!doc.addEventListener) {
|
||||
@ -665,9 +668,6 @@ pre.sf-dump:after {
|
||||
pre.sf-dump span {
|
||||
display: inline;
|
||||
}
|
||||
pre.sf-dump .sf-dump-compact {
|
||||
display: none;
|
||||
}
|
||||
pre.sf-dump a {
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
@ -699,12 +699,6 @@ pre.sf-dump code {
|
||||
padding:0;
|
||||
background:none;
|
||||
}
|
||||
.sf-dump-str-collapse .sf-dump-str-collapse {
|
||||
display: none;
|
||||
}
|
||||
.sf-dump-str-expand .sf-dump-str-expand {
|
||||
display: none;
|
||||
}
|
||||
.sf-dump-public.sf-dump-highlight,
|
||||
.sf-dump-protected.sf-dump-highlight,
|
||||
.sf-dump-private.sf-dump-highlight,
|
||||
|
Reference in New Issue
Block a user