Skip to content

Commit 56d1881

Browse files
committed
refactor: replace @see test annotations in 4.8-only classes with #[CoversClass] in tests
1 parent 3f4344e commit 56d1881

18 files changed

Lines changed: 18 additions & 21 deletions

‎system/Commands/Utilities/Routes/PlaceholderSampleGenerator.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
* The generated candidate is validated against the original pattern with
2828
* ``preg_match`` before being returned, so callers never receive a non-matching
2929
* sample even when the parser is too permissive for a given edge case.
30-
*
31-
* @see \CodeIgniter\Commands\Utilities\Routes\PlaceholderSampleGeneratorTest
3230
*/
3331
final class PlaceholderSampleGenerator
3432
{

‎system/EnvironmentDetector.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
*
2828
* For custom environment names beyond the built-in production/development/testing,
2929
* use {@see self::is()}.
30-
*
31-
* @see \CodeIgniter\EnvironmentDetectorTest
3230
*/
3331
final readonly class EnvironmentDetector
3432
{

‎system/HTTP/FormRequest.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
use ReflectionNamedType;
1919
use ReflectionParameter;
2020

21-
/**
22-
* @see \CodeIgniter\HTTP\FormRequestTest
23-
*/
2421
abstract class FormRequest
2522
{
2623
/**

‎system/HTTP/RequestInput.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
/**
2121
* Provides typed input access for request data sources.
22-
*
23-
* @see \CodeIgniter\HTTP\RequestInputTest
2422
*/
2523
final readonly class RequestInput
2624
{

‎system/HTTP/SSEResponse.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
/**
1919
* HTTP response for Server-Sent Events (SSE) streaming.
20-
*
21-
* @see \CodeIgniter\HTTP\SSEResponseTest
2220
*/
2321
class SSEResponse extends StreamResponse
2422
{

‎system/HTTP/StreamResponse.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
/**
1919
* HTTP response that streams its body to the client as it is generated,
2020
* instead of buffering the complete body first.
21-
*
22-
* @see \CodeIgniter\HTTP\StreamResponseTest
2321
*/
2422
class StreamResponse extends Response implements NonBufferedResponseInterface
2523
{

‎system/Input/InputData.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313

1414
namespace CodeIgniter\Input;
1515

16-
/**
17-
* @see \CodeIgniter\Input\InputDataTest
18-
*/
1916
class InputData
2017
{
2118
/**

‎system/Input/InputDataFactory.php‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313

1414
namespace CodeIgniter\Input;
1515

16-
/**
17-
* @see \CodeIgniter\Input\InputDataFactoryTest
18-
*/
1916
class InputDataFactory
2017
{
2118
/**

‎system/Input/ValidatedInput.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
*
2626
* This class is stricter than InputData: missing values may use defaults and
2727
* null values remain null, but invalid present values throw.
28-
*
29-
* @see \CodeIgniter\Input\ValidatedInputTest
3028
*/
3129
class ValidatedInput extends InputData
3230
{

‎tests/system/Commands/Utilities/Routes/PlaceholderSampleGeneratorTest.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
namespace CodeIgniter\Commands\Utilities\Routes;
1515

1616
use CodeIgniter\Test\CIUnitTestCase;
17+
use PHPUnit\Framework\Attributes\CoversClass;
1718
use PHPUnit\Framework\Attributes\DataProvider;
1819
use PHPUnit\Framework\Attributes\Group;
1920

2021
/**
2122
* @internal
2223
*/
24+
#[CoversClass(PlaceholderSampleGenerator::class)]
2325
#[Group('Others')]
2426
final class PlaceholderSampleGeneratorTest extends CIUnitTestCase
2527
{

0 commit comments

Comments
 (0)