Merge pull request #534 from qcjackman/qcjackman-patch-frame-save
fix a bug when calling Frame->save()
This commit is contained in:
commit
6983fbb411
2 changed files with 6 additions and 2 deletions
|
|
@ -115,7 +115,9 @@ class Frame extends AbstractMediaType
|
||||||
$commands = array_merge($commands, $filter->apply($this));
|
$commands = array_merge($commands, $filter->apply($this));
|
||||||
}
|
}
|
||||||
|
|
||||||
$commands = array_merge($commands, array($pathfile));
|
if (!$returnBase64) {
|
||||||
|
$commands = array_merge($commands, array($pathfile));
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if(!$returnBase64) {
|
if(!$returnBase64) {
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,9 @@ class FrameTest extends AbstractMediaTestCase
|
||||||
|
|
||||||
$pathfile = '/target/destination';
|
$pathfile = '/target/destination';
|
||||||
|
|
||||||
array_push($commands, $pathfile);
|
if (!$base64) {
|
||||||
|
array_push($commands, $pathfile);
|
||||||
|
}
|
||||||
|
|
||||||
$driver->expects($this->once())
|
$driver->expects($this->once())
|
||||||
->method('command')
|
->method('command')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue