forked from php-enqueue/enqueue-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProducerTest.php
More file actions
41 lines (34 loc) · 959 Bytes
/
ProducerTest.php
File metadata and controls
41 lines (34 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Enqueue\Tests\Client;
use Enqueue\Client\DriverInterface;
use Enqueue\Client\Producer;
use Enqueue\Client\ProducerInterface;
use Enqueue\Rpc\RpcFactory;
use Enqueue\Test\ClassExtensionTrait;
use PHPUnit\Framework\TestCase;
class ProducerTest extends TestCase
{
use ClassExtensionTrait;
public function testShouldImplementProducerInterface()
{
self::assertClassImplements(ProducerInterface::class, Producer::class);
}
public function testShouldBeFinal()
{
self::assertClassFinal(Producer::class);
}
/**
* @return \PHPUnit\Framework\MockObject\MockObject
*/
private function createRpcFactoryMock(): RpcFactory
{
return $this->createMock(RpcFactory::class);
}
/**
* @return \PHPUnit\Framework\MockObject\MockObject
*/
private function createDriverMock(): DriverInterface
{
return $this->createMock(DriverInterface::class);
}
}