Skip to content

Commit 66fc7e8

Browse files
committed
Remove Test attribute in demo code
1 parent 09f86e8 commit 66fc7e8

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

demo/tests/Blog/LoaderTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use App\Blog\FeedLoader;
1515
use App\Blog\Post;
1616
use PHPUnit\Framework\Attributes\CoversClass;
17-
use PHPUnit\Framework\Attributes\Test;
1817
use PHPUnit\Framework\Attributes\UsesClass;
1918
use PHPUnit\Framework\TestCase;
2019
use Symfony\Component\HttpClient\MockHttpClient;
@@ -24,8 +23,7 @@
2423
#[UsesClass(Post::class)]
2524
final class LoaderTest extends TestCase
2625
{
27-
#[Test]
28-
public function load(): void
26+
public function testLoad(): void
2927
{
3028
$response = MockResponse::fromFile(__DIR__.'/fixtures/blog.rss');
3129
$client = new MockHttpClient($response);

demo/tests/Blog/PostTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@
1313

1414
use App\Blog\Post;
1515
use PHPUnit\Framework\Attributes\CoversClass;
16-
use PHPUnit\Framework\Attributes\Test;
1716
use PHPUnit\Framework\TestCase;
1817
use Symfony\Component\Uid\Uuid;
1918

2019
#[CoversClass(Post::class)]
2120
final class PostTest extends TestCase
2221
{
23-
#[Test]
24-
public function postToString(): void
22+
public function testPostToString(): void
2523
{
2624
$post = new Post(
2725
Uuid::v4(),
@@ -43,8 +41,7 @@ public function postToString(): void
4341
$this->assertSame($expected, $post->toString());
4442
}
4543

46-
#[Test]
47-
public function postToArray(): void
44+
public function testPostToArray(): void
4845
{
4946
$id = Uuid::v4();
5047
$post = new Post(

demo/tests/SmokeTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use PHPUnit\Framework\Attributes\CoversNothing;
1515
use PHPUnit\Framework\Attributes\DataProvider;
16-
use PHPUnit\Framework\Attributes\Test;
1716
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
1817
use Symfony\UX\LiveComponent\Test\InteractsWithLiveComponents;
1918

@@ -22,8 +21,7 @@ final class SmokeTest extends WebTestCase
2221
{
2322
use InteractsWithLiveComponents;
2423

25-
#[Test]
26-
public function index(): void
24+
public function testIndex(): void
2725
{
2826
$client = static::createClient();
2927
$client->request('GET', '/');
@@ -33,9 +31,8 @@ public function index(): void
3331
self::assertSelectorCount(5, '.card');
3432
}
3533

36-
#[Test]
3734
#[DataProvider('provideChats')]
38-
public function chats(string $path, string $expectedHeadline): void
35+
public function testChats(string $path, string $expectedHeadline): void
3936
{
4037
$client = static::createClient();
4138
$client->request('GET', $path);

src/platform/tests/Bridge/Albert/GPTModelClientTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PHPUnit\Framework\Attributes\CoversClass;
1515
use PHPUnit\Framework\Attributes\DataProvider;
1616
use PHPUnit\Framework\Attributes\Small;
17-
use PHPUnit\Framework\Attributes\Test;
1817
use PHPUnit\Framework\TestCase;
1918
use Symfony\AI\Platform\Bridge\Albert\GPTModelClient;
2019
use Symfony\AI\Platform\Bridge\OpenAI\Embeddings;

0 commit comments

Comments
 (0)