Adding more tests

This commit is contained in:
Jeremy Benoist
2019-02-27 14:59:50 +01:00
parent ea925bb112
commit 8c0ba95307
8 changed files with 77 additions and 9 deletions

View File

@ -114,7 +114,7 @@ class GrabySiteConfigBuilder implements SiteConfigBuilder
$extraFields = [];
foreach ($extraFieldsStrings as $extraField) {
if (false === strpos($extraField, '=')) {
break;
continue;
}
list($fieldName, $fieldValue) = explode('=', $extraField, 2);

View File

@ -56,7 +56,7 @@ class DownloadImages
$imagePath = $this->processSingleImage($entryId, $image, $url, $relativePath);
if (false === $imagePath) {
break;
continue;
}
// if image contains "&" and we can't find it in the html it might be because it's encoded as &

View File

@ -37,7 +37,7 @@ class RuleBasedTagger
foreach ($rules as $rule) {
if (!$this->rulerz->satisfies($entry, $rule->getRule())) {
break;
continue;
}
$this->logger->info('Matching rule.', [

View File

@ -49,7 +49,7 @@ class TagsAssigner
// avoid empty tag
if (0 === \strlen($label)) {
break;
continue;
}
if (isset($tagsNotYetFlushed[$label])) {