Skip to content

Commit

Permalink
removed debugging stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephigenia committed Oct 16, 2010
1 parent 4af55f8 commit ddcd883
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 9 additions & 7 deletions app/lib/tests/FeedburnerHitsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ class_exists('ScrapeTest') or require dirname(__FILE__).'/ScrapeTest.php';
* @since 19.05.2009
*/
class FeedburnerHitsTest extends ScrapeTest
{
$params = array(
'uri' => $this->uri,
// we have to access data that is 2 days old, 1 day old is sometimes and often just 0!!
'dates' => date('Y-m-d', strtotime('-2 days')).','.date('Y-m-d', strtotime('-2 days')),
);
$this->url = 'https://feedburner.google.com/api/awareness/1.0/GetFeedData?'.http_build_query($params, '', '&');
{
public function afterConstruct()
{
$params = array(
'uri' => $this->uri,
// we have to access data that is 2 days old, 1 day old is sometimes and often just 0!!
'dates' => date('Y-m-d', strtotime('-2 days')).','.date('Y-m-d', strtotime('-2 days')),
);
$this->url = 'https://feedburner.google.com/api/awareness/1.0/GetFeedData?'.http_build_query($params, '', '&');
$this->regexp = '@hits="(\d+)"@i';
return parent::afterConstruct();
}
Expand Down
1 change: 0 additions & 1 deletion app/lib/tests/FeedburnerReadersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public function afterConstruct()
'dates' => date('Y-m-d', strtotime('-2 days')).','.date('Y-m-d', strtotime('-2 days')),
);
$this->url = 'https://feedburner.google.com/api/awareness/1.0/GetFeedData?'.http_build_query($params, '', '&');
die(var_dump($this->url));
$this->regexp = '@circulation="(\d+)"@i';
return parent::afterConstruct();
}
Expand Down

0 comments on commit ddcd883

Please sign in to comment.