function testUnlinkFalse() { $bucket = $this->getS3Bucket(); $s3 = $this->getS3Client(); $s3->expectOnce('deleteObject', array('bin.staticlocal.ch', 'myfile/index.xml')); $s3->setReturnValue('deleteObject', false); $storage = new binarypool_storage_driver_s3($bucket['storage'], $s3, $this->getMockCache()); $this->assertEqual($storage->unlink('myfile/index.xml'), false); }