• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

squigg / azure-queue-laravel / 6e9da035-ea78-453b-a56d-5a8c77f86def

pending completion
6e9da035-ea78-453b-a56d-5a8c77f86def

push

circleci

squigg
Improve test config

51 of 51 relevant lines covered (100.0%)

10.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/AzureConnector.php
1
<?php
2

3
namespace Squigg\AzureQueueLaravel;
4

5
use Illuminate\Queue\Connectors\ConnectorInterface;
6
use MicrosoftAzure\Storage\Queue\QueueRestProxy;
7

8
class AzureConnector implements ConnectorInterface
9
{
10

11
    /**
12
     * Establish a queue connection.
13
     */
14
    public function connect(array $config): AzureQueue
15
    {
16
        $connectionString = 'DefaultEndpointsProtocol=' . $config['protocol'] . ';AccountName=' . $config['accountname'] . ';AccountKey=' . $config['key'];
6✔
17

18
        if (isset($config['endpoint']) && $config['endpoint'] !== "") {
6✔
19
            $connectionString .= ";EndpointSuffix=" . $config['endpoint'];
2✔
20
        }
21

22
        if (isset($config['queue_endpoint']) && $config['queue_endpoint'] !== "") {
6✔
23
            $connectionString .= ";QueueEndpoint=" . $config['queue_endpoint'];
2✔
24
        }
25

26
        $queueRestProxy = QueueRestProxy::createQueueService($connectionString);
6✔
27

28
        return new AzureQueue($queueRestProxy, $config['queue'], $config['timeout']);
6✔
29
    }
30
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc