public function testFilterWithAlwaysFalseCallbackIsEmpty()
 {
     $feedEntry = new FeedEntry();
     $feedEntry->setItems($this->getFeedEntryItems());
     $filter = new FeedEntryFilter($feedEntry, function (FeedEntryItem $item) {
         return false;
     });
     $this->assertCount(0, $filter->getItems());
     $this->assertFalse($filter->hasItems());
 }
 public function testFilterWithAlwaysFalseCallbackIsEmpty()
 {
     $data = new \stdClass();
     $data->id = 1;
     $data->items = $this->getFeedEntryData();
     $feedEntry = new FeedEntry($data);
     $filter = new FeedEntryFilter($feedEntry, function () {
         return false;
     });
     $this->assertCount(0, $filter->getItems());
     $this->assertFalse($filter->hasItems());
 }