11<?php
22
3- use League \Flysystem \Dropbox \DropboxAdapter as Dropbox ;
43use League \Flysystem \Config ;
4+ use League \Flysystem \Dropbox \DropboxAdapter as Dropbox ;
55
66class DropboxTests extends PHPUnit_Framework_TestCase
77{
@@ -33,7 +33,7 @@ public function dropboxProvider()
3333 public function testWrite ($ adapter , $ mock )
3434 {
3535 $ mock ->shouldReceive ('uploadFileFromString ' )->andReturn ([
36- 'is_dir ' => false ,
36+ 'is_dir ' => false ,
3737 'modified ' => '10 September 2000 ' ,
3838 ], false );
3939
@@ -50,7 +50,7 @@ public function testWrite($adapter, $mock)
5050 public function testUpdate (Dropbox $ adapter , $ mock )
5151 {
5252 $ mock ->shouldReceive ('uploadFileFromString ' )->andReturn ([
53- 'is_dir ' => false ,
53+ 'is_dir ' => false ,
5454 'modified ' => '10 September 2000 ' ,
5555 ], false );
5656
@@ -67,7 +67,7 @@ public function testUpdate(Dropbox $adapter, $mock)
6767 public function testWriteStream (Dropbox $ adapter , $ mock )
6868 {
6969 $ mock ->shouldReceive ('uploadFile ' )->andReturn ([
70- 'is_dir ' => false ,
70+ 'is_dir ' => false ,
7171 'modified ' => '10 September 2000 ' ,
7272 ], false );
7373
@@ -84,7 +84,7 @@ public function testWriteStream(Dropbox $adapter, $mock)
8484 public function testUpdateStream (Dropbox $ adapter , $ mock )
8585 {
8686 $ mock ->shouldReceive ('uploadFile ' )->andReturn ([
87- 'is_dir ' => false ,
87+ 'is_dir ' => false ,
8888 'modified ' => '10 September 2000 ' ,
8989 ], false );
9090
@@ -113,7 +113,7 @@ public function testMetadataCalls($method)
113113 {
114114 $ mock = $ this ->getClientMock ();
115115 $ mock ->shouldReceive ('getMetadata ' )->twice ()->andReturn ([
116- 'is_dir ' => false ,
116+ 'is_dir ' => false ,
117117 'modified ' => '10 September 2000 ' ,
118118 ], false );
119119
@@ -166,7 +166,7 @@ public function testCreateDir(Dropbox $adapter, $mock)
166166 $ mock ->shouldReceive ('createFolder ' )->with ('/prefix/fail/please ' )->andReturn (null );
167167 $ mock ->shouldReceive ('createFolder ' )->with ('/prefix/pass/please ' )->andReturn ([
168168 'is_dir ' => true ,
169- 'path ' => 'pass/please ' ,
169+ 'path ' => 'pass/please ' ,
170170 ]);
171171 $ this ->assertFalse ($ adapter ->createDir ('fail/please ' , new Config ()));
172172 $ expected = ['path ' => 'pass/please ' , 'type ' => 'dir ' ];
0 commit comments