/** * Validates if source xor destiny are s3 paths. * @return bool */ public function validate() { if (PathHelper::isS3Path($this->source) xor PathHelper::isS3Path($this->destination)) { return true; } return false; }
/** * @dataProvider isS3PathProvider * @param $expected * @param $path */ public function testIsS3Path($expected, $path) { $this->assertEquals($expected, PathHelper::isS3Path($path)); }