public function testUpdateStream() { $container = $this->getContainerMock(); $dataObject = $this->getDataObjectMock('filename.ext'); $dataObject->shouldReceive('setContent'); $dataObject->shouldReceive('setEtag'); $dataObject->shouldReceive('update')->andReturn(Mockery::self()); $container->shouldReceive('getObject')->andReturn($dataObject); $adapter = new Rackspace($container); $resource = tmpfile(); $this->assertInternalType('array', $adapter->updateStream('filename.ext', $resource)); }