Skip to content

Commit

Permalink
Merge branch 'master' into github_action_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaetzel committed May 16, 2022
2 parents cb925c4 + e2f8411 commit cbebe66
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/composer.lock
/vendor
.env
.phpunit.result.cache
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "jkphl/micrometa",
"description": "A meta parser for extracting micro information out of web documents, currently supporting Microformats 1+2, HTML Microdata, RDFa Lite 1.1 and JSON-LD",
"homepage": "https://jkphl.is/projects/micrometa/",
"minimum-stability": "dev",
"prefer-stable": true,
"license": "MIT",
"authors": [
Expand Down Expand Up @@ -48,7 +47,6 @@
"require-dev": {
"clue/graph-composer": "^1.1",
"mf2/tests": "@dev",
"mindplay/composer-locator": "^2.1",
"phpunit/phpunit": "^7.0 || ^8.5",
"php-coveralls/php-coveralls": "^2.1",
"squizlabs/php_codesniffer": "^3.3"
Expand Down
3 changes: 1 addition & 2 deletions src/Micrometa/Tests/Application/ExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

namespace Jkphl\Micrometa\Tests\Application;

use ComposerLocator;
use DOMDocument;
use Jkphl\Domfactory\Ports\Dom;
use Jkphl\Micrometa\Application\Contract\ParsingResultInterface;
Expand Down Expand Up @@ -106,7 +105,7 @@ public function testMicrodataExtraction()
*/
public function testMicroformatsExtraction()
{
$microformatsTests = ComposerLocator::getPath('mf2/tests').DIRECTORY_SEPARATOR.'tests'.
$microformatsTests = dirname(__DIR__).DIRECTORY_SEPARATOR.'Fixture'.
DIRECTORY_SEPARATOR.'microformats-v2'.DIRECTORY_SEPARATOR;

$this->getAndTestMicroformatsExtractionBase(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<meta charset="utf-8">
<div class="h-product">
<h2 class="p-name">Raspberry Pi</h2>
<img class="u-photo" src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/3d/RaspberryPi.jpg/320px-RaspberryPi.jpg" />
<p class="e-description">The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.</p>
<a class="u-url" href="http://www.raspberrypi.org/">More info about the Raspberry Pi</a>
<p class="p-price">£29.95</p>
<p class="p-review h-review-aggregate">
<span class="p-rating h-rating">
<span class="p-average">9.2</span> out of
<span class="p-best">10</span>
based on <span class="p-count">178</span> reviews
</span>
</p>
<p>Categories: <span class="p-category">Computer</span>, <span class="p-category">Education</span></p>
<p class="p-brand h-card">From:
<span class="p-name p-org">The Raspberry Pi Foundation</span> -
<span class="p-locality">Cambridge</span>
<span class="p-country-name">UK</span>
</p>
</div>

0 comments on commit cbebe66

Please sign in to comment.