public function setUp() { parent::setUp(); $this->mediavorus = MediaVorus::create(); $this->file = __DIR__ . '/../../../files/videoFlashed.MOV'; $this->object = $this->mediavorus->guess($this->file); }
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')); }
/** * @covers MediaVorus\MediaVorus::create */ public function testCreate() { $this->assertInstanceOf('MediaVorus\\MediaVorus', MediaVorus::create()); }