From 70d3bce2a9f9947a96a5f4a74cbd79c73968eb9a Mon Sep 17 00:00:00 2001 From: omaralalwi Date: Sun, 9 Feb 2025 03:50:33 +0300 Subject: [PATCH] initilize tests --- ...pSeekClient.php => DeepSeekClientTest.php} | 0 tests/Pest.php | 44 ++++++++++++++++++- tests/Unit/ExampleTest.php | 5 +++ 3 files changed, 48 insertions(+), 1 deletion(-) rename tests/Feature/{DeepSeekClient.php => DeepSeekClientTest.php} (100%) create mode 100644 tests/Unit/ExampleTest.php diff --git a/tests/Feature/DeepSeekClient.php b/tests/Feature/DeepSeekClientTest.php similarity index 100% rename from tests/Feature/DeepSeekClient.php rename to tests/Feature/DeepSeekClientTest.php diff --git a/tests/Pest.php b/tests/Pest.php index 7ea77fb..5949c61 100644 --- a/tests/Pest.php +++ b/tests/Pest.php @@ -1,3 +1,45 @@ in('Feature'); + +/* +|-------------------------------------------------------------------------- +| Expectations +|-------------------------------------------------------------------------- +| +| When you're writing tests, you often need to check that values meet certain conditions. The +| "expect()" function gives you access to a set of "expectations" methods that you can use +| to assert different things. Of course, you may extend the Expectation API at any time. +| +*/ + +expect()->extend('toBeOne', function () { + return $this->toBe(1); +}); + +/* +|-------------------------------------------------------------------------- +| Functions +|-------------------------------------------------------------------------- +| +| While Pest is very powerful out-of-the-box, you may have some testing code specific to your +| project that you don't want to repeat in every file. Here you can also expose helpers as +| global functions to help you to reduce the number of lines of code in your test files. +| +*/ + +function something() +{ + // .. +} diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php new file mode 100644 index 0000000..61cd84c --- /dev/null +++ b/tests/Unit/ExampleTest.php @@ -0,0 +1,5 @@ +toBeTrue(); +});