Skip to content

Commit

Permalink
Update docs, cleanup badges
Browse files Browse the repository at this point in the history
  • Loading branch information
zoonman committed Jun 26, 2023
1 parent 1f6ac4f commit 1789a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Pixabay PHP Client
[![Build Status](https://travis-ci.org/zoonman/pixabay-php-api.svg)](https://travis-ci.org/zoonman/pixabay-php-api) [![Code Climate](https://codeclimate.com/github/zoonman/pixabay-php-api/badges/gpa.svg)](https://codeclimate.com/github/zoonman/pixabay-php-api) [![Packagist](https://img.shields.io/packagist/dt/zoonman/pixabay-php-api.svg)]() [![GitHub license](https://img.shields.io/github/license/zoonman/pixabay-php-api.svg)]()
[![Build Status](https://github.com/zoonman/pixabay-php-api/actions/workflows/php.yml/badge.svg)](https://github.com/zoonman/pixabay-php-api/actions/workflows/php.yml) [![Code Climate](https://codeclimate.com/github/zoonman/pixabay-php-api/badges/gpa.svg)](https://codeclimate.com/github/zoonman/pixabay-php-api) [![Packagist](https://img.shields.io/packagist/dt/zoonman/pixabay-php-api.svg)]() [![GitHub license](https://img.shields.io/github/license/zoonman/pixabay-php-api.svg)]()

This is unofficial wrapper for [Pixabay RESTful API](http://pixabay.com/api/docs/) for searching and retrieving Pixabay public domain images.

Expand Down
5 changes: 3 additions & 2 deletions tests/Pixabay/Tests/PixabayClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

namespace Pixabay\Tests;

use GuzzleHttp\Exception\ClientException;
use Pixabay\PixabayClient;
use PHPUnit\Framework\TestCase;

Expand Down Expand Up @@ -58,7 +59,7 @@ public function testConstructorOnNoKeyParameter()
*/
public function testGetImages()
{
$this->expectException(\GuzzleHttp\Exception\ClientException::class);
$this->expectException(ClientException::class);
$this->assertIsArray($this->object->getImages(['q' => 'test']));
}

Expand All @@ -68,7 +69,7 @@ public function testGetImages()
*/
public function testGetVideos()
{
$this->expectException(\GuzzleHttp\Exception\ClientException::class);
$this->expectException(ClientException::class);
$this->assertIsArray($this->object->getVideos(['q' => 'test']));
}
}

0 comments on commit 1789a14

Please sign in to comment.