本文整理汇总了PHP中Zend\Feed\Reader\Reader::reset方法的典型用法代码示例。如果您正苦于以下问题:PHP Reader::reset方法的具体用法?PHP Reader::reset怎么用?PHP Reader::reset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend\Feed\Reader\Reader
的用法示例。
在下文中一共展示了Reader::reset方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setup
public function setup()
{
Reader\Reader::reset();
$this->feedSamplePath = dirname(__FILE__) . '/_files/Atom';
$this->expectedCats = array(array('term' => 'topic1', 'scheme' => 'http://example.com/schema1', 'label' => 'topic1'), array('term' => 'topic1', 'scheme' => 'http://example.com/schema2', 'label' => 'topic1'), array('term' => 'cat_dog', 'scheme' => 'http://example.com/schema1', 'label' => 'Cat & Dog'));
$this->expectedCatsDc = array(array('term' => 'topic1', 'scheme' => null, 'label' => 'topic1'), array('term' => 'topic2', 'scheme' => null, 'label' => 'topic2'));
}
示例2: setup
public function setup()
{
Reader\Reader::reset();
if (\Zend\Registry::isRegistered('Zend_Locale')) {
$registry = \Zend\Registry::getInstance();
unset($registry['Zend_Locale']);
}
$this->_feedSamplePath = dirname(__FILE__) . '/_files/Common';
}
示例3: setup
public function setup()
{
Reader\Reader::reset();
$this->_feedSamplePath = dirname(__FILE__) . '/_files/podcast.xml';
$this->_options = Date\Date::setOptions();
foreach($this->_options as $k=>$v) {
if (is_null($v)) {
unset($this->_options[$k]);
}
}
Date\Date::setOptions(array('format_type'=>'iso'));
}
示例4: setUp
function setUp()
{
parent::setUp();
// Do not delete old aggregator items during these tests, since our sample
// feeds have hardcoded dates in them (which may be expired when this test
// is run).
$this->container->get('config.factory')->get('aggregator.settings')->set('items.expire', AGGREGATOR_CLEAR_NEVER)->save();
// Reset any reader cache between tests.
Reader::reset();
// Set our bridge extension manager to Zend Feed.
$bridge = $this->container->get('feed.bridge.reader');
Reader::setExtensionManager($bridge);
}
示例5: setup
public function setup()
{
Reader\Reader::reset();
if (\Zend\Registry::isRegistered('Zend_Locale')) {
$registry = \Zend\Registry::getInstance();
unset($registry['Zend_Locale']);
}
$this->_feedSamplePath = dirname(__FILE__) . '/_files/AtomSource';
$this->_options = Date\Date::setOptions();
foreach($this->_options as $k=>$v) {
if (is_null($v)) {
unset($this->_options[$k]);
}
}
Date\Date::setOptions(array('format_type'=>'iso'));
$this->_expectedCats = array(
array(
'term' => 'topic1',
'scheme' => 'http://example.com/schema1',
'label' => 'topic1'
),
array(
'term' => 'topic1',
'scheme' => 'http://example.com/schema2',
'label' => 'topic1'
),
array(
'term' => 'cat_dog',
'scheme' => 'http://example.com/schema1',
'label' => 'Cat & Dog'
)
);
$this->_expectedCatsDc = array(
array(
'term' => 'topic1',
'scheme' => null,
'label' => 'topic1'
),
array(
'term' => 'topic2',
'scheme' => null,
'label' => 'topic2'
)
);
}
示例6: setup
public function setup()
{
Reader\Reader::reset();
$this->feedSamplePath = dirname(__FILE__) . '/_files/h-online.com-atom10.xml';
}
示例7: tearDown
public function tearDown()
{
Reader\Reader::reset();
}
示例8: setup
public function setup()
{
Reader\Reader::reset();
$this->_feedSamplePath = dirname(__FILE__) . '/_files/Common';
}