Source of file AtomTagsStub.php
Size: 0,563 Bytes - Last Modified: 2021-12-24T06:43:15+00:00
/var/www/docs.ssmods.com/process/src/tests/AtomFeedTest/AtomTagsStub.php
12345678910111213141516171819202122 | <?php namespace CWP\Core\Tests\AtomFeedTest; use CWP\Core\Feed\CwpAtomFeed; use SilverStripe\Dev\TestOnly; /** * Class to wrap CwpAtomFeed::linkToFeed so it can be tested * would be better if we could return the tags directly from Requirements */ class AtomTagsStub implements TestOnly { public static function linkToFeed($url, $title = null) { $link = '<link rel="alternate" type="application/atom+xml" title="' . $title . '" href="' . $url . '" />'; CwpAtomFeed::linkToFeed($url, $title); return $link; } } |