From 49cc5bbb57dc77a9fcbf5dccaf7eda965603c7d5 Mon Sep 17 00:00:00 2001 From: Matt Butcher Date: Thu, 19 Jan 2012 17:38:51 -0600 Subject: [PATCH] Updating unit tests, removing syslog calls. --- src/HPCloud/Storage/ObjectStorage/Container.php | 1 - test/Tests/StreamWrapperTest.php | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/HPCloud/Storage/ObjectStorage/Container.php b/src/HPCloud/Storage/ObjectStorage/Container.php index f359179..5ea3660 100644 --- a/src/HPCloud/Storage/ObjectStorage/Container.php +++ b/src/HPCloud/Storage/ObjectStorage/Container.php @@ -404,7 +404,6 @@ class Container implements \Countable, \IteratorAggregate { hash_update_stream($hash, $file); $etag = hash_final($hash); $headers['ETag'] = $etag; - syslog(LOG_WARNING, 'ETag: ' . $etag); // Not sure if this is necessary: rewind($file); diff --git a/test/Tests/StreamWrapperTest.php b/test/Tests/StreamWrapperTest.php index 30b134d..d0da6a4 100644 --- a/test/Tests/StreamWrapperTest.php +++ b/test/Tests/StreamWrapperTest.php @@ -265,14 +265,14 @@ class StreamWrapperTest extends \HPCloud\Tests\TestCase { */ public function testClose($res) { $this->assertTrue(is_resource($res)); - fwrite($res, 'extra.'); + fwrite($res, '~~~~'); //throw new \Exception(stream_get_contents($res)); fflush($res); // This is occasionally generating seemingly // spurious PHP errors about Bootstrap::$config. fclose($res); -/* + $url = $this->newUrl(self::FNAME); $res2 = fopen($url, 'r', FALSE, $this->basicSwiftContext()); $this->assertTrue(is_resource($res2)); @@ -280,7 +280,6 @@ class StreamWrapperTest extends \HPCloud\Tests\TestCase { $contents = stream_get_contents($res2); fclose($res2); $this->assertRegExp('/~{4}$/', $contents); -*/ }