1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-01-03 14:32:40 +00:00
This commit is contained in:
J. King 2017-12-19 22:19:42 -05:00
parent 67ecaee1f6
commit 0785f832de
2 changed files with 4 additions and 4 deletions

View file

@ -8,8 +8,8 @@ namespace JKingWeb\Arsse;
use Phake; use Phake;
/** /**
* @covers \JKingWeb\Arsse\Feed * @covers \JKingWeb\Arsse\Feed
* @group slow */ * @group slow */
class TestFeedFetching extends Test\AbstractTest { class TestFeedFetching extends Test\AbstractTest {
protected static $host = "http://localhost:8000/"; protected static $host = "http://localhost:8000/";

View file

@ -88,13 +88,13 @@ trait Setup {
foreach ($info['rows'] as $index => $row) { foreach ($info['rows'] as $index => $row) {
$this->assertCount(sizeof($cols), $row, "The number of values for array index $index does not match the number of fields"); $this->assertCount(sizeof($cols), $row, "The number of values for array index $index does not match the number of fields");
$row = array_combine($cols, $row); $row = array_combine($cols, $row);
foreach($data as $index => $test) { foreach ($data as $index => $test) {
foreach ($test as $col => $value) { foreach ($test as $col => $value) {
if ($types[$col]=="datetime") { if ($types[$col]=="datetime") {
$test[$col] = $this->approximateTime($row[$col], $value); $test[$col] = $this->approximateTime($row[$col], $value);
} }
} }
if($row===$test) { if ($row===$test) {
$data[$index] = $test; $data[$index] = $test;
break; break;
} }