public function testCreateJob() { $delivery = $this->getMockBuilder('Gloubster\\Delivery\\DeliveryInterface')->disableOriginalConstructor()->getMock(); $job = VideoJob::create('/path/to/source', $delivery); $this->assertTrue($job->isOk()); }