Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove composer-locator #69

Merged
merged 1 commit into from
May 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>