Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
tests: import Exception class namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkEzz committed Jan 2, 2021
1 parent 927fbd5 commit e3379d6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/LightTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@

namespace SharkEzz\Yeelight\Tests;

use Exception;
use PHPUnit\Framework\TestCase;
use SharkEzz\Yeelight\YeePHP;

class LightTest extends TestCase
{
/**
* Set this variable to the IP of your light
*
* @var string
*/
private string $ip = '192.168.0.103';

private YeePHP $light;

/**
* @throws \Exception
* @throws Exception
*/
protected function setUp(): void
{
Expand All @@ -25,7 +31,7 @@ protected function setUp(): void

public function testConstructorThrowExceptionIfTheIpAdressIsInvalid()
{
$this->expectException(\Exception::class);
$this->expectException(Exception::class);
new YeePHP('192.1555.0.0');
}

Expand Down

0 comments on commit e3379d6

Please sign in to comment.