From 3fcbe4d82854a34e3bdcf6ea683b158efd2e3cee Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 8 Oct 2026 23:14:33 +0300 Subject: [PATCH] Some translations --- tests/Fixtures/DescribedModel.php | 2 +- tests/Integration/OpenAIIntegrationTest.php | 4 ++-- tests/Unit/ClassSchemaResolverTest.php | 2 +- tests/Unit/JsonFicatorTest.php | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Fixtures/DescribedModel.php b/tests/Fixtures/DescribedModel.php index 26836c6..681f55c 100644 --- a/tests/Fixtures/DescribedModel.php +++ b/tests/Fixtures/DescribedModel.php @@ -11,7 +11,7 @@ use JsonFicator\IJsonFicatorModel; class DescribedModel implements IJsonFicatorModel { - #[JsonFicatorDescription('Марка автомобиля')] + #[JsonFicatorDescription('Car brand')] public ?string $brand; #[JsonFicatorRequired] diff --git a/tests/Integration/OpenAIIntegrationTest.php b/tests/Integration/OpenAIIntegrationTest.php index d1bd252..06ce2b4 100644 --- a/tests/Integration/OpenAIIntegrationTest.php +++ b/tests/Integration/OpenAIIntegrationTest.php @@ -47,7 +47,7 @@ final class OpenAIIntegrationTest extends TestCase $jsonFicator = new JsonFicator($provider); - $result = $jsonFicator->toJson('Колодки на ниссан лиф +799999999', [ + $result = $jsonFicator->toJson('Brake pads for Nissan Leaf +799999999', [ 'carBrand' => 'string?', 'carModel' => 'string?', 'phoneNumber' => 'string?', @@ -74,7 +74,7 @@ final class OpenAIIntegrationTest extends TestCase $jsonFicator = new JsonFicator($provider); - $result = $jsonFicator->toJson('Колодки на Nissan Leaf', [ + $result = $jsonFicator->toJson('Brake pads for Nissan Leaf', [ 'brand' => 'string', 'model' => 'string', 'year' => 'int?', diff --git a/tests/Unit/ClassSchemaResolverTest.php b/tests/Unit/ClassSchemaResolverTest.php index 9c40950..60e8aeb 100644 --- a/tests/Unit/ClassSchemaResolverTest.php +++ b/tests/Unit/ClassSchemaResolverTest.php @@ -53,7 +53,7 @@ final class ClassSchemaResolverTest extends TestCase $brand = $schema->getField('brand'); $this->assertNotNull($brand); - $this->assertSame('Марка автомобиля', $brand->description); + $this->assertSame('Car brand', $brand->description); $required = $schema->getField('requiredNullable'); $this->assertNotNull($required); diff --git a/tests/Unit/JsonFicatorTest.php b/tests/Unit/JsonFicatorTest.php index 4d49ea0..08a7866 100644 --- a/tests/Unit/JsonFicatorTest.php +++ b/tests/Unit/JsonFicatorTest.php @@ -23,7 +23,7 @@ final class JsonFicatorTest extends TestCase $jsonFicator = new JsonFicator($provider); - $result = $jsonFicator->toJson('Колодки на ниссан лиф +799999999', [ + $result = $jsonFicator->toJson('Brake pads for Nissan Leaf +799999999', [ 'carBrand' => 'string?', 'carModel' => 'string?', 'phoneNumber' => 'string', @@ -49,7 +49,7 @@ final class JsonFicatorTest extends TestCase $jsonFicator = new JsonFicator($provider); /** @var VinRequest $result */ - $result = $jsonFicator->toModel('Колодки на ниссан лиф +799999999', VinRequest::class); + $result = $jsonFicator->toModel('Brake pads for Nissan Leaf +799999999', VinRequest::class); $this->assertInstanceOf(VinRequest::class, $result); $this->assertSame('Nissan', $result->brand); @@ -70,7 +70,7 @@ final class JsonFicatorTest extends TestCase $jsonFicator = new JsonFicator($provider); /** @var NestedRequest $result */ - $result = $jsonFicator->toModel('Колодки на ниссан лиф', NestedRequest::class); + $result = $jsonFicator->toModel('Brake pads for Nissan Leaf', NestedRequest::class); $this->assertInstanceOf(NestedRequest::class, $result); $this->assertInstanceOf(Car::class, $result->car); @@ -90,7 +90,7 @@ final class JsonFicatorTest extends TestCase $jsonFicator = new JsonFicator($provider); - $result = $jsonFicator->toJson('Колодки на Nissan Leaf', [ + $result = $jsonFicator->toJson('Brake pads for Nissan Leaf', [ 'brand' => 'string', 'model' => 'string', 'year' => 'int?',