Skip to content

Commit

Permalink
Merge pull request ivankaizer#6 from ivankayzer/fix-tests
Browse files Browse the repository at this point in the history
fix new search structure
  • Loading branch information
ivankaizer authored Oct 29, 2022
2 parents 452182b + 8172ddb commit 2a2e5a4
Show file tree
Hide file tree
Showing 20 changed files with 690 additions and 4,204 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,5 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

- name: PHP Code Style Fixer (php-cs-fixer)
uses: StephaneBour/[email protected]

- name: Run PHPUnit
run: ./vendor/bin/phpunit tests

# Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
# Docs: https://getcomposer.org/doc/articles/scripts.md

# - name: Run test suite
# run: composer run-script test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
.idea/
.fleet/

/vendor/
.php_cs.cache
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ returns
"ID": "5265",
"Image": "https://howlongtobeat.com/gameimages/220px-Lego_Lord_of_the_Rings_cover.jpg",
"Title": "LEGO The Lord of the Rings: The Video Game",
"Time": {
"Summary": {
"Main Story": "10 Hours",
"Main + Extra": "16 Hours",
"Completionist": "33 Hours"
Expand All @@ -47,7 +47,7 @@ returns
"ID": "5263",
"Image": "https://howlongtobeat.com/gameimages/256px-Lego_Star_Wars-The_Complete_Saga.jpg",
"Title": "LEGO Star Wars: The Complete Saga",
"Time": {
"Summary": {
"Main Story": "14 Hours",
"Main + Extra": "23 Hours",
"Completionist": "39.5 Hours"
Expand All @@ -57,7 +57,7 @@ returns
"ID": "16635",
"Image": "https://howlongtobeat.com/gameimages/LegoTheHobbit.jpg",
"Title": "LEGO The Hobbit",
"Time": {
"Summary": {
"Main Story": "9 Hours",
"Main + Extra": "16 Hours",
"Completionist": "35.5 Hours"
Expand Down Expand Up @@ -87,7 +87,7 @@ $hl2b->search('Lego', 2);
use IvanKayzer\HowLongToBeat\HowLongToBeat;

$hl2b = new HowLongToBeat();
$hl2b->search(5265);
$hl2b->get(5265);
```

returns
Expand Down
12 changes: 8 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ivankayzer/howlongtobeat",
"version": "1.0.2",
"version": "1.1.0",
"authors": [
{
"name": "Ivan Kayzer",
Expand All @@ -11,9 +11,6 @@
"homepage": "https://github.com/ivankayzer/howlongtobeat",
"license": "MIT",
"description": "howlongtobeat.com provides information about games and how long it will take to finish them. This library is a simple wrapper to fetch data from Howlongtobeat website",
"require": {
"fabpot/goutte": "^4.0"
},
"autoload": {
"psr-4": {
"IvanKayzer\\HowLongToBeat\\": "src/"
Expand All @@ -22,5 +19,12 @@
"require-dev": {
"phpunit/phpunit": "^7",
"mockery/mockery": "^1.3"
},
"require": {
"php": "^7.4",
"guzzlehttp/guzzle": "^7.0",
"ext-json": "*",
"symfony/dom-crawler": "^5.4",
"symfony/css-selector": "^5.4"
}
}
Loading

0 comments on commit 2a2e5a4

Please sign in to comment.