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

JsonSchemaTest::testValidateJsonMessageFunction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 1
rs 10
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
}