File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 22namespace PHPQueue \Backend ;
33class WindowsAzureBlobTest extends \PHPUnit_Framework_TestCase
44{
5+ /**
6+ * @var \PHPQueue\Backend\WindowsAzureBlob
7+ */
58 private $ object ;
69
710 public function setUp ()
@@ -49,7 +52,7 @@ public function testAdd()
4952
5053 $ this ->object ->setContainer ($ container_name );
5154 $ file = __DIR__ . '/cc_logo.jpg ' ;
52- $ result = $ this ->object ->put ('image.jpg ' , $ file );
55+ $ result = $ this ->object ->putFile ('image.jpg ' , $ file );
5356 $ this ->assertTrue ($ result );
5457
5558 $ result = $ this ->object ->listFiles ();
@@ -63,7 +66,7 @@ public function testGet()
6366 {
6467 $ container_name = 'testimg ' ;
6568 $ this ->object ->setContainer ($ container_name );
66- $ result = $ this ->object ->fetch ('image.jpg ' );
69+ $ result = $ this ->object ->fetchFile ('image.jpg ' , __DIR__ . ' /downloads ' );
6770 $ this ->assertNotEmpty ($ result );
6871 }
6972
You can’t perform that action at this time.
0 commit comments