File tree Expand file tree Collapse file tree 3 files changed +21
-21
lines changed
tests/TestCase/Datasource Expand file tree Collapse file tree 3 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ jobs :
3+ build :
4+ docker :
5+ - image : circleci/php:5.6-apache-jessie-node-browsers
6+ working_directory : ~/repo
7+ steps :
8+ - run : sudo apt-get install libicu-dev libmcrypt-dev
9+ - run : sudo docker-php-ext-install intl && sudo docker-php-ext-install mcrypt
10+ - checkout
11+ - restore_cache :
12+ keys :
13+ - v1-dependencies-{{ checksum "composer.json" }}
14+ - run : composer install
15+ - save_cache :
16+ paths :
17+ - vendor
18+ key : v1-dependencies-{{ checksum "composer.json" }}
19+ - run : composer test
Original file line number Diff line number Diff line change 2020 "aws/aws-sdk-php" : " ~3.18"
2121 },
2222 "require-dev" : {
23- "phpunit/phpunit" : " * " ,
23+ "phpunit/phpunit" : " ~5.6 " ,
2424 "cakephp/cakephp" : " ~3.2" ,
2525 "cakephp/cakephp-codesniffer" : " dev-master" ,
2626 "mockery/mockery" : " dev-master"
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ private function __getS3ClientMock()
2828 $ mock = m::mock ('overload:\Aws\S3\S3Client ' );
2929 $ mock ->shouldReceive ('registerStreamWrapper ' )
3030 ->once ();
31- $ mock ->shouldReceive ('doesBucketExist ' )
31+ $ mock ->shouldReceive ('getCommand ' )
3232 ->once ()
3333 ->andReturn (true );
3434
@@ -78,25 +78,6 @@ public function testNewInstanceMissingArguments()
7878 new Connection ($ params );
7979 }
8080
81- /**
82- * Test new instance failed, missing bucket
83- *
84- * @return void
85- */
86- public function testNewInstanceBucketIsNotExist ()
87- {
88- $ this ->expectException (\InvalidArgumentException::class);
89-
90- $ mock = m::mock ('overload:Aws\S3\S3Client ' );
91- $ mock ->shouldReceive ('registerStreamWrapper ' )
92- ->once ();
93- $ mock ->shouldReceive ('doesBucketExist ' )
94- ->once ()
95- ->andReturn (false );
96-
97- $ this ->__getConnectionInstance ();
98- }
99-
10081 /**
10182 * Test copyObject method
10283 */
You can’t perform that action at this time.
0 commit comments