J. King
7 years ago
11 changed files with 130 additions and 6 deletions
@ -0,0 +1,13 @@ |
|||
<?php return [ |
|||
'code' => 200, |
|||
'lastMod' => time() + 2000, |
|||
'content' => <<<MESSAGE_BODY |
|||
<rss version="2.0"> |
|||
<channel> |
|||
<title>Test feed</title> |
|||
<link>http://example.com/</link> |
|||
<description>A basic feed for testing</description> |
|||
</channel> |
|||
</rss> |
|||
MESSAGE_BODY |
|||
]; |
@ -0,0 +1,13 @@ |
|||
<?php return [ |
|||
'code' => 200, |
|||
'lastMod' => time() - 2000, |
|||
'content' => <<<MESSAGE_BODY |
|||
<rss version="2.0"> |
|||
<channel> |
|||
<title>Test feed</title> |
|||
<link>http://example.com/</link> |
|||
<description>A basic feed for testing</description> |
|||
</channel> |
|||
</rss> |
|||
MESSAGE_BODY |
|||
]; |
@ -0,0 +1,29 @@ |
|||
<?php return [ |
|||
'code' => 200, |
|||
'cache' => false, |
|||
'content' => <<<MESSAGE_BODY |
|||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |
|||
<channel> |
|||
<title>Test feed</title> |
|||
<link>http://example.com/</link> |
|||
<description>A basic feed for testing</description> |
|||
|
|||
<item> |
|||
<description>Sample article 1</description> |
|||
<pubDate>Sun, 18 May 1995 15:21:36 GMT</pubDate> |
|||
<atom:updated>2002-02-19T15:21:36Z</atom:updated> |
|||
</item> |
|||
<item> |
|||
<description>Sample article 2</description> |
|||
<pubDate>Sun, 19 May 2002 15:21:36 GMT</pubDate> |
|||
<atom:updated>2002-04-19T15:21:36Z</atom:updated> |
|||
</item> |
|||
<item> |
|||
<description>Sample article 3</description> |
|||
<pubDate>Sun, 18 May 2000 15:21:36 GMT</pubDate> |
|||
<atom:updated>1999-05-19T15:21:36Z</atom:updated> |
|||
</item> |
|||
</channel> |
|||
</rss> |
|||
MESSAGE_BODY |
|||
]; |
@ -0,0 +1,18 @@ |
|||
<?php return [ |
|||
'code' => 200, |
|||
'cache' => false, |
|||
'content' => <<<MESSAGE_BODY |
|||
<rss version="2.0"> |
|||
<channel> |
|||
<title>Test feed</title> |
|||
<link>http://example.com/</link> |
|||
<description>A basic feed for testing</description> |
|||
|
|||
<item> |
|||
<description>Sample article</description> |
|||
<pubDate>Sun, 19 May 2002 15:21:36 GMT</pubDate> |
|||
</item> |
|||
</channel> |
|||
</rss> |
|||
MESSAGE_BODY |
|||
]; |
@ -0,0 +1,19 @@ |
|||
<?php return [ |
|||
'code' => 200, |
|||
'cache' => false, |
|||
'content' => <<<MESSAGE_BODY |
|||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |
|||
<channel> |
|||
<title>Test feed</title> |
|||
<link>http://example.com/</link> |
|||
<description>A basic feed for testing</description> |
|||
|
|||
<item> |
|||
<description>Sample article</description> |
|||
<pubDate>Sun, 18 May 2002 15:21:36 GMT</pubDate> |
|||
<atom:updated>2002-05-19T15:21:36Z</atom:updated> |
|||
</item> |
|||
</channel> |
|||
</rss> |
|||
MESSAGE_BODY |
|||
]; |
@ -1,6 +1,7 @@ |
|||
#! /bin/sh |
|||
base=`dirname "$0"` |
|||
php -n -S localhost:8000 "$base/server.php" >/dev/null & |
|||
sleep 1s |
|||
php "$base/../vendor/phpunit/phpunit/phpunit" -c "$base/phpunit.xml" $* |
|||
sleep 1s |
|||
pid=`lsof -n -i:8000 | grep -Eo "php\s+[0-9]+" | grep -Eo "[0-9]+"` |
|||
|
Loading…
Reference in new issue