diff --git a/tests/Support/Fixtures/StringableObjectStub.php b/tests/Support/Fixtures/StringableObjectStub.php new file mode 100644 index 000000000000..1d09ea2400e0 --- /dev/null +++ b/tests/Support/Fixtures/StringableObjectStub.php @@ -0,0 +1,18 @@ +value = $value; + } + + public function __toString() + { + return $this->value; + } +} diff --git a/tests/Support/SupportStrTest.php b/tests/Support/SupportStrTest.php index a29252a0bff3..28b5bf70c1e3 100755 --- a/tests/Support/SupportStrTest.php +++ b/tests/Support/SupportStrTest.php @@ -4,6 +4,7 @@ use Exception; use Illuminate\Support\Str; +use Illuminate\Tests\Support\Fixtures\StringableObjectStub; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; use Ramsey\Uuid\UuidInterface; @@ -1927,18 +1928,3 @@ public function count(): int $this->assertSame('UserGroups', Str::pluralPascal('UserGroup', $countable)); } } - -class StringableObjectStub -{ - private $value; - - public function __construct($value) - { - $this->value = $value; - } - - public function __toString() - { - return $this->value; - } -} diff --git a/tests/Support/SupportStringableTest.php b/tests/Support/SupportStringableTest.php index 56dd427dd1da..1963c5b809e8 100644 --- a/tests/Support/SupportStringableTest.php +++ b/tests/Support/SupportStringableTest.php @@ -9,6 +9,7 @@ use Illuminate\Support\HtmlString; use Illuminate\Support\Stringable; use Illuminate\Support\Uri; +use Illuminate\Tests\Support\Fixtures\StringableObjectStub; use League\CommonMark\Environment\EnvironmentBuilderInterface; use League\CommonMark\Extension\ExtensionInterface; use PHPUnit\Framework\TestCase;