Browse Source

CS fixes

microsub
J. King 6 years ago
parent
commit
0785f832de
  1. 4
      tests/cases/Feed/TestFeedFetching.php
  2. 4
      tests/lib/Database/Setup.php

4
tests/cases/Feed/TestFeedFetching.php

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

4
tests/lib/Database/Setup.php

@ -88,13 +88,13 @@ trait Setup {
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");
$row = array_combine($cols, $row);
foreach($data as $index => $test) {
foreach ($data as $index => $test) {
foreach ($test as $col => $value) {
if ($types[$col]=="datetime") {
$test[$col] = $this->approximateTime($row[$col], $value);
}
}
if($row===$test) {
if ($row===$test) {
$data[$index] = $test;
break;
}

Loading…
Cancel
Save