Skip to content

initilize tests #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ Detailed release notes available in [CHANGELOG.md](CHANGELOG.md)

```bash
composer test
OR
./vendor/bin/pest
```

Test coverage coming in v2.1.
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"laravel/pint": "^1.18.1",
"mockery/mockery": "^1.6.12",
"nunomaduro/collision": "^7.11.0|^8.5.0",
"pestphp/pest": "^2.36.0|^3.5.0",
"pestphp/pest": "^2.36",
"pestphp/pest-plugin-arch": "^2.7|^3.0",
"pestphp/pest-plugin-type-coverage": "^2.8.7|^3.1.0",
"phpstan/phpstan": "^1.12.7",
Expand All @@ -75,7 +75,7 @@
},
"autoload-dev": {
"psr-4": {
"DeepSeek\\Tests\\": "tests/"
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
Expand All @@ -96,6 +96,7 @@
"config": {
"sort-packages": true,
"preferred-install": "dist",
"optimize-autoloader": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
Expand Down
9 changes: 0 additions & 9 deletions tests/DeepseekTest.php

This file was deleted.

5 changes: 5 additions & 0 deletions tests/Feature/ExampleTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

test('example', function () {
expect(true)->toBeTrue();
});
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace DeepSeek\Tests;
namespace Tests\Feature;


use DeepSeek\DeepSeekClient;
use DeepSeek\Enums\Requests\HTTPState;
use PHPUnit\Framework\TestCase;
use DeepSeek\DeepSeekClient;

class HandelResultDeepseekTest extends TestCase
{
Expand Down Expand Up @@ -47,7 +47,7 @@ public function test_access_with_wrong_api_key()
->setTemperature(1.5);
$response = $deepseek->run();
$result = $deepseek->getResult();

$this->assertNotEmpty($response);
$this->assertEquals(HTTPState::UNAUTHORIZED->value, $result->getStatusCode());
}
Expand Down
3 changes: 3 additions & 0 deletions tests/Pest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

//
10 changes: 10 additions & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Tests;

use PHPUnit\Framework\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
//
}