Skip to content

Commit

Permalink
Corona: Update to latest Lunr.Halo
Browse files Browse the repository at this point in the history
  • Loading branch information
pprkut committed Jan 31, 2025
1 parent cbcb9d2 commit 125e630
Show file tree
Hide file tree
Showing 101 changed files with 420 additions and 420 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @covers Lunr\Corona\Exceptions\BadGatewayException
*/
class BadGatewayExceptionBaseTest extends BadGatewayExceptionTest
class BadGatewayExceptionBaseTest extends BadGatewayExceptionTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* This file contains the BadGatewayExceptionTest class.
* This file contains the BadGatewayExceptionTestCase class.
*
* SPDX-FileCopyrightText: Copyright 2023 Move Agency Group B.V., Zwolle, The Netherlands
* SPDX-License-Identifier: MIT
Expand All @@ -11,15 +11,15 @@

use Exception;
use Lunr\Corona\Exceptions\BadGatewayException;
use Lunr\Halo\LunrBaseTest;
use Lunr\Halo\LunrBaseTestCase;

/**
* This class contains common setup routines, providers
* and shared attributes for testing the BadGatewayException class.
*
* @covers Lunr\Corona\Exceptions\BadGatewayException
*/
abstract class BadGatewayExceptionTest extends LunrBaseTest
abstract class BadGatewayExceptionTestCase extends LunrBaseTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @covers Lunr\Corona\Exceptions\BadRequestException
*/
class BadRequestExceptionBaseTest extends BadRequestExceptionTest
class BadRequestExceptionBaseTest extends BadRequestExceptionTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @covers Lunr\Corona\Exceptions\BadRequestException
*/
class BadRequestExceptionInputDataTest extends BadRequestExceptionTest
class BadRequestExceptionInputDataTest extends BadRequestExceptionTestCase
{

/**
Expand Down Expand Up @@ -107,7 +107,7 @@ public function testSetArrayReportDoesNotSetEmptyReport(): void
*/
public function testGetDataKey(): void
{
$this->set_reflection_property_value('key', 'foo');
$this->setReflectionPropertyValue('key', 'foo');

$this->assertEquals('foo', $this->class->getDataKey());
}
Expand All @@ -119,7 +119,7 @@ public function testGetDataKey(): void
*/
public function testGetDataValue(): void
{
$this->set_reflection_property_value('value', 'bar');
$this->setReflectionPropertyValue('value', 'bar');

$this->assertEquals('bar', $this->class->getDataValue());
}
Expand All @@ -131,7 +131,7 @@ public function testGetDataValue(): void
*/
public function testGetReport(): void
{
$this->set_reflection_property_value('report', 'baz');
$this->setReflectionPropertyValue('report', 'baz');

$this->assertEquals('baz', $this->class->getReport());
}
Expand All @@ -145,7 +145,7 @@ public function testIsDataAvailable(): void
{
$this->assertFalse($this->class->isDataAvailable());

$this->set_reflection_property_value('key', '');
$this->setReflectionPropertyValue('key', '');

$this->assertTrue($this->class->isDataAvailable());
}
Expand All @@ -159,7 +159,7 @@ public function testIsReportAvailable(): void
{
$this->assertFalse($this->class->isReportAvailable());

$this->set_reflection_property_value('report', '');
$this->setReflectionPropertyValue('report', '');

$this->assertTrue($this->class->isReportAvailable());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* This file contains the BadRequestExceptionTest class.
* This file contains the BadRequestExceptionTestCase class.
*
* SPDX-FileCopyrightText: Copyright 2023 Move Agency Group B.V., Zwolle, The Netherlands
* SPDX-License-Identifier: MIT
Expand All @@ -11,15 +11,15 @@

use Exception;
use Lunr\Corona\Exceptions\BadRequestException;
use Lunr\Halo\LunrBaseTest;
use Lunr\Halo\LunrBaseTestCase;

/**
* This class contains common setup routines, providers
* and shared attributes for testing the BadRequestException class.
*
* @covers Lunr\Corona\Exceptions\BadRequestException
*/
abstract class BadRequestExceptionTest extends LunrBaseTest
abstract class BadRequestExceptionTestCase extends LunrBaseTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @covers Lunr\Corona\Exceptions\ClientDataHttpException
*/
class ClientDataHttpExceptionBaseTest extends ClientDataHttpExceptionTest
class ClientDataHttpExceptionBaseTest extends ClientDataHttpExceptionTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @covers Lunr\Corona\Exceptions\ClientDataHttpException
*/
class ClientDataHttpExceptionInputDataTest extends ClientDataHttpExceptionTest
class ClientDataHttpExceptionInputDataTest extends ClientDataHttpExceptionTestCase
{

/**
Expand Down Expand Up @@ -106,7 +106,7 @@ public function testSetArrayReportDoesNotSetEmptyReport(): void
*/
public function testGetDataKey(): void
{
$this->set_reflection_property_value('key', 'foo');
$this->setReflectionPropertyValue('key', 'foo');

$this->assertEquals('foo', $this->class->getDataKey());
}
Expand All @@ -118,7 +118,7 @@ public function testGetDataKey(): void
*/
public function testGetDataValue(): void
{
$this->set_reflection_property_value('value', 'bar');
$this->setReflectionPropertyValue('value', 'bar');

$this->assertEquals('bar', $this->class->getDataValue());
}
Expand All @@ -130,7 +130,7 @@ public function testGetDataValue(): void
*/
public function testGetReport(): void
{
$this->set_reflection_property_value('report', 'baz');
$this->setReflectionPropertyValue('report', 'baz');

$this->assertEquals('baz', $this->class->getReport());
}
Expand All @@ -144,7 +144,7 @@ public function testIsDataAvailable(): void
{
$this->assertFalse($this->class->isDataAvailable());

$this->set_reflection_property_value('key', '');
$this->setReflectionPropertyValue('key', '');

$this->assertTrue($this->class->isDataAvailable());
}
Expand All @@ -158,7 +158,7 @@ public function testIsReportAvailable(): void
{
$this->assertFalse($this->class->isReportAvailable());

$this->set_reflection_property_value('report', '');
$this->setReflectionPropertyValue('report', '');

$this->assertTrue($this->class->isReportAvailable());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* This file contains the ClientDataHttpExceptionTest class.
* This file contains the ClientDataHttpExceptionTestCase class.
*
* SPDX-FileCopyrightText: Copyright 2023 Move Agency Group B.V., Zwolle, The Netherlands
* SPDX-License-Identifier: MIT
Expand All @@ -11,15 +11,15 @@

use Exception;
use Lunr\Corona\Exceptions\ClientDataHttpException;
use Lunr\Halo\LunrBaseTest;
use Lunr\Halo\LunrBaseTestCase;

/**
* This class contains common setup routines, providers
* and shared attributes for testing the HttpException class.
*
* @covers Lunr\Corona\Exceptions\HttpException
*/
abstract class ClientDataHttpExceptionTest extends LunrBaseTest
abstract class ClientDataHttpExceptionTestCase extends LunrBaseTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @covers Lunr\Corona\Exceptions\ConflictException
*/
class ConflictExceptionBaseTest extends ConflictExceptionTest
class ConflictExceptionBaseTest extends ConflictExceptionTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* This file contains the ConflictExceptionTest class.
* This file contains the ConflictExceptionTestCase class.
*
* SPDX-FileCopyrightText: Copyright 2023 Move Agency Group B.V., Zwolle, The Netherlands
* SPDX-License-Identifier: MIT
Expand All @@ -11,15 +11,15 @@

use Exception;
use Lunr\Corona\Exceptions\ConflictException;
use Lunr\Halo\LunrBaseTest;
use Lunr\Halo\LunrBaseTestCase;

/**
* This class contains common setup routines, providers
* and shared attributes for testing the ConflictException class.
*
* @covers Lunr\Corona\Exceptions\ConflictException
*/
abstract class ConflictExceptionTest extends LunrBaseTest
abstract class ConflictExceptionTestCase extends LunrBaseTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @covers Lunr\Corona\Exceptions\FailedDependencyException
*/
class FailedDependencyExceptionBaseTest extends FailedDependencyExceptionTest
class FailedDependencyExceptionBaseTest extends FailedDependencyExceptionTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* This file contains the FailedDependencyExceptionTest class.
* This file contains the FailedDependencyExceptionTestCase class.
*
* SPDX-FileCopyrightText: Copyright 2023 Move Agency Group B.V., Zwolle, The Netherlands
* SPDX-License-Identifier: MIT
Expand All @@ -11,15 +11,15 @@

use Exception;
use Lunr\Corona\Exceptions\FailedDependencyException;
use Lunr\Halo\LunrBaseTest;
use Lunr\Halo\LunrBaseTestCase;

/**
* This class contains common setup routines, providers
* and shared attributes for testing the FailedDependencyException class.
*
* @covers Lunr\Corona\Exceptions\FailedDependencyException
*/
abstract class FailedDependencyExceptionTest extends LunrBaseTest
abstract class FailedDependencyExceptionTestCase extends LunrBaseTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @covers Lunr\Corona\Exceptions\ForbiddenException
*/
class ForbiddenExceptionBaseTest extends ForbiddenExceptionTest
class ForbiddenExceptionBaseTest extends ForbiddenExceptionTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @covers Lunr\Corona\Exceptions\ForbiddenException
*/
class ForbiddenExceptionInputDataTest extends ForbiddenExceptionTest
class ForbiddenExceptionInputDataTest extends ForbiddenExceptionTestCase
{

/**
Expand Down Expand Up @@ -105,7 +105,7 @@ public function testSetArrayReportDoesNotSetEmptyReport(): void
*/
public function testGetDataKey(): void
{
$this->set_reflection_property_value('key', 'foo');
$this->setReflectionPropertyValue('key', 'foo');

$this->assertEquals('foo', $this->class->getDataKey());
}
Expand All @@ -117,7 +117,7 @@ public function testGetDataKey(): void
*/
public function testGetDataValue(): void
{
$this->set_reflection_property_value('value', 'bar');
$this->setReflectionPropertyValue('value', 'bar');

$this->assertEquals('bar', $this->class->getDataValue());
}
Expand All @@ -129,7 +129,7 @@ public function testGetDataValue(): void
*/
public function testGetReport(): void
{
$this->set_reflection_property_value('report', 'baz');
$this->setReflectionPropertyValue('report', 'baz');

$this->assertEquals('baz', $this->class->getReport());
}
Expand All @@ -143,7 +143,7 @@ public function testIsDataAvailable(): void
{
$this->assertFalse($this->class->isDataAvailable());

$this->set_reflection_property_value('key', 'foo');
$this->setReflectionPropertyValue('key', 'foo');

$this->assertTrue($this->class->isDataAvailable());
}
Expand All @@ -157,7 +157,7 @@ public function testIsReportAvailable(): void
{
$this->assertFalse($this->class->isReportAvailable());

$this->set_reflection_property_value('report', '');
$this->setReflectionPropertyValue('report', '');

$this->assertTrue($this->class->isReportAvailable());
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* This file contains the ForbiddenExceptionTest class.
* This file contains the ForbiddenExceptionTestCase class.
*
* SPDX-FileCopyrightText: Copyright 2023 Move Agency Group B.V., Zwolle, The Netherlands
* SPDX-License-Identifier: MIT
Expand All @@ -11,15 +11,15 @@

use Exception;
use Lunr\Corona\Exceptions\ForbiddenException;
use Lunr\Halo\LunrBaseTest;
use Lunr\Halo\LunrBaseTestCase;

/**
* This class contains common setup routines, providers
* and shared attributes for testing the ForbiddenException class.
*
* @covers Lunr\Corona\Exceptions\ForbiddenException
*/
abstract class ForbiddenExceptionTest extends LunrBaseTest
abstract class ForbiddenExceptionTestCase extends LunrBaseTestCase
{

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Lunr/Corona/Exceptions/Tests/HttpExceptionBaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @covers Lunr\Corona\Exceptions\HttpException
*/
class HttpExceptionBaseTest extends HttpExceptionTest
class HttpExceptionBaseTest extends HttpExceptionTestCase
{

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @covers Lunr\Corona\Exceptions\HttpException
*/
class HttpExceptionNoAppCodeTest extends HttpExceptionTest
class HttpExceptionNoAppCodeTest extends HttpExceptionTestCase
{

/**
Expand Down
Loading

0 comments on commit 125e630

Please sign in to comment.