Passed
Pull Request — master (#661)
by
unknown
09:51
created

JsonSchemaTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 3
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testValidateJsonMessageFunction() 0 1 1
1
<?php
2
3
namespace OldSound\RabbitMqBundle\Tests\RabbitMq;
4
5
use OldSound\RabbitMqBundle\RabbitMq\Producer;
6
use PhpAmqpLib\Connection\AbstractConnection;
7
use PHPUnit\Framework\TestCase;
8
9
class JsonSchemaTest extends TestCase
10
{
11
    public function testValidateJsonMessageFunction(){
12
13
        // $msg = array('user_id' => 1235, 'image_path' => 'pic.png');
14
        // // $this->get('old_sound_rabbit_mq.upload_picture_producer')->publish(serialize($msg));
15
        // // $container = $kernel->getContainer();
16
        
17
        // $clinet = $this->get
18
        // $client = $this->getMockBuilder('OldSound\RabbitMqBundle\RabbitMq\Producer');
19
        // //$con = new AbstractConnection("user", "pass");
20
        // dd($client);
21
        // $producer = new Producer($con);
22
        // $producer ->publish('abc');
23
24
    }
25
}