Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#1559 from EvanDotPro/h…
Browse files Browse the repository at this point in the history
…otfix/feed-db-row

Fix Zend\Feed test for Zend\Db hydration changes from @EvanDotPro
  • Loading branch information
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/PubSubHubbub/Subscriber/CallbackTest.php
Expand Up @@ -21,10 +21,10 @@
namespace ZendTest\Feed\PubSubHubbub\Subscriber;

use Zend\Date\Date;
use Zend\Db\ResultSet\Row;
use Zend\Feed\PubSubHubbub\HttpResponse;
use Zend\Feed\PubSubHubbub\Model;
use Zend\Feed\PubSubHubbub\Subscriber\Callback as CallbackSubscriber;
use ArrayObject;

/**
* @category Zend
Expand Down Expand Up @@ -280,8 +280,7 @@ public function testRespondsToValidConfirmationWith200Response()
'lease_seconds' => 10000
);

$row = new Row;
$row->exchangeArray($rowdata);
$row = new ArrayObject($rowdata, ArrayObject::ARRAY_AS_PROPS);

$this->_rowset->expects($this->any())
->method('current')
Expand Down Expand Up @@ -323,8 +322,7 @@ public function testRespondsToValidConfirmationWithBodyContainingHubChallenge()
'lease_seconds' => 10000
);

$row = new Row;
$row->exchangeArray($rowdata);
$row = new ArrayObject($rowdata, ArrayObject::ARRAY_AS_PROPS);

$this->_rowset->expects($this->any())
->method('current')
Expand Down Expand Up @@ -370,7 +368,7 @@ public function testRespondsToValidFeedUpdateRequestWith200Response()
'created_time' => time()
);

$row = new Row(array('data' => $rowdata));
$row = new ArrayObject($rowdata, ArrayObject::ARRAY_AS_PROPS);

$this->_rowset->expects($this->any())
->method('current')
Expand Down Expand Up @@ -433,7 +431,8 @@ public function testRespondsToInvalidFeedUpdateWrongFeedTypeForMimeWith200Respon
'lease_seconds' => 10000
);

$row = new Row(array('data' => $rowdata));
$row = new ArrayObject($rowdata, ArrayObject::ARRAY_AS_PROPS);


$this->_rowset->expects($this->any())
->method('current')
Expand Down Expand Up @@ -467,7 +466,8 @@ public function testRespondsToValidFeedUpdateWithXHubOnBehalfOfHeader()
'lease_seconds' => 10000
);

$row = new Row(array('data' => $rowdata));
$row = new ArrayObject($rowdata, ArrayObject::ARRAY_AS_PROPS);


$this->_rowset->expects($this->any())
->method('current')
Expand Down

0 comments on commit c4a3687

Please sign in to comment.