function testIsFileNo() { $bucket = $this->getS3Bucket(); $s3 = $this->getS3Client(); $s3->expectOnce('getObjectInfo', array('bin.staticlocal.ch', 'anything/else/as/file', false)); $s3->setReturnValue('getObjectInfo', false); $storage = new binarypool_storage_driver_s3($bucket['storage'], $s3, $this->getMockCache()); $this->assertEqual($storage->isFile('anything/else/as/file'), false); }