Skip to content

Commit

Permalink
Corona: Update ClientDataHttpException tests for Lunr.Halo master
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Dec 23, 2023
1 parent 92fc686 commit b1eac41
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Lunr/Corona/Exceptions/Tests/ClientDataHttpExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ abstract class ClientDataHttpExceptionTest extends LunrBaseTest
*/
protected $code;

/**
* Instance of the tested class.
* @var ClientDataHttpException
*/
protected ClientDataHttpException $class;

/**
* TestCase Constructor.
*/
Expand All @@ -62,7 +68,7 @@ public function setUp(): void
->setConstructorArgs([ $this->message, $this->code, $this->app_code, $this->previous ])
->getMockForAbstractClass();

$this->reflection = new ReflectionClass(ClientDataHttpException::class);
parent::baseSetUp($this->class);
}

/**
Expand All @@ -74,8 +80,9 @@ public function tearDown(): void
unset($this->app_code);
unset($this->message);
unset($this->previous);
unset($this->reflection);
unset($this->class);

parent::tearDown();
}

}
Expand Down

0 comments on commit b1eac41

Please sign in to comment.