/** * Get list of all media processors asset files * * @return array of Models\MediaProcessor */ public function getMediaProcessors() { $propertyList = $this->_getEntityList('MediaProcessors'); $result = array(); foreach ($propertyList as $properties) { $result[] = MediaProcessor::createFromOptions($properties); } return $result; }
/** * @covers WindowsAzure\MediaServices\Models\MediaProcessor::getVersion */ public function testGetVersion() { // Setup $options = array('Version' => '3.6.5'); $mediaProc = MediaProcessor::createFromOptions($options); // Test $result = $mediaProc->getVersion(); // Assert $this->assertEquals($options['Version'], $result); }