File tree Expand file tree Collapse file tree 4 files changed +5
-14
lines changed
src/platform/tests/Bridge/Albert Expand file tree Collapse file tree 4 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 1414use App \Blog \FeedLoader ;
1515use App \Blog \Post ;
1616use PHPUnit \Framework \Attributes \CoversClass ;
17- use PHPUnit \Framework \Attributes \Test ;
1817use PHPUnit \Framework \Attributes \UsesClass ;
1918use PHPUnit \Framework \TestCase ;
2019use Symfony \Component \HttpClient \MockHttpClient ;
2423#[UsesClass(Post::class)]
2524final 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 );
Original file line number Diff line number Diff line change 1313
1414use App \Blog \Post ;
1515use PHPUnit \Framework \Attributes \CoversClass ;
16- use PHPUnit \Framework \Attributes \Test ;
1716use PHPUnit \Framework \TestCase ;
1817use Symfony \Component \Uid \Uuid ;
1918
2019#[CoversClass(Post::class)]
2120final 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 (
Original file line number Diff line number Diff line change 1313
1414use PHPUnit \Framework \Attributes \CoversNothing ;
1515use PHPUnit \Framework \Attributes \DataProvider ;
16- use PHPUnit \Framework \Attributes \Test ;
1716use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
1817use 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 );
Original file line number Diff line number Diff line change 1414use PHPUnit \Framework \Attributes \CoversClass ;
1515use PHPUnit \Framework \Attributes \DataProvider ;
1616use PHPUnit \Framework \Attributes \Small ;
17- use PHPUnit \Framework \Attributes \Test ;
1817use PHPUnit \Framework \TestCase ;
1918use Symfony \AI \Platform \Bridge \Albert \GPTModelClient ;
2019use Symfony \AI \Platform \Bridge \OpenAI \Embeddings ;
You can’t perform that action at this time.
0 commit comments