Пример #1
0
 public function setUp()
 {
     parent::setUp();
     $this->mediavorus = MediaVorus::create();
     $this->file = __DIR__ . '/../../../files/videoFlashed.MOV';
     $this->object = $this->mediavorus->guess($this->file);
 }
Пример #2
0
 public function __construct($id, AMQPConnection $conn, $queue, TemporaryFilesystem $filesystem, Logger $logger)
 {
     $this->id = $id;
     $this->queue = $queue;
     $this->conn = $conn;
     $this->channel = $conn->channel();
     $this->logger = $logger;
     $this->filesystem = $filesystem;
     $this->jobCounter = new Counter();
     $this->mediavorus = MediaVorus::create();
     AnnotationRegistry::registerAutoloadNamespace('JMS\\Serializer\\Annotation', __DIR__ . '/../../../vendor/jms/serializer/src');
     $this->serializer = $serializer = SerializerBuilder::create()->setCacheDir(__DIR__ . '/../../../cache')->build();
     $this->running = false;
     declare (ticks=1);
     $this->clock = new Clock();
     $this->clock->addPeriodicTimer(1, array($this, 'sendPresence'));
 }
Пример #3
0
 /**
  * @covers MediaVorus\MediaVorus::create
  */
 public function testCreate()
 {
     $this->assertInstanceOf('MediaVorus\\MediaVorus', MediaVorus::create());
 }