Skip to content

Commit 4a01a49

Browse files
chore: Update tests for improved clarity and functionality
1 parent d39a23f commit 4a01a49

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<a href="https://packagist.org/packages/codewithkyrian/transformers"><img src="https://img.shields.io/packagist/v/codewithkyrian/transformers" alt="Latest Stable Version"></a>
1212
<a href="https://github.com/CodeWithKyrian/transformers-php/blob/main/LICENSE"><img src="https://img.shields.io/github/license/codewithkyrian/transformers-php" alt="License"></a>
1313
<a href="https://github.com/codewithkyrian/transformers-php"><img src="https://img.shields.io/github/repo-size/codewithkyrian/transformers-php" alt="Documentation"></a>
14+
<a href="https://github.com/CodeWithKyrian/transformers-php/actions/workflows/tests.yml"><img src="https://github.com/CodeWithKyrian/transformers-php/actions/workflows/tests.yml/badge.svg" alt="Tests"></a>
1415
</p>
1516

1617
TransformersPHP is designed to be functionally equivalent to the Python library, while still maintaining the same level of performance and ease of use. This library is built on top of the Hugging Face's Transformers library, which provides thousands of pre-trained models in 100+ languages. It is designed to be a simple and easy-to-use library for PHP developers using a similar API to the Python library. These models can be used for a variety of tasks, including text generation, summarization, translation, and more.

tests/Utils/HubTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
});
4444

4545
it('joins paths correctly with empty string and slashes', function () {
46-
$result = joinPaths('path', '', '/file');
46+
$result = joinPaths('path', '', DIRECTORY_SEPARATOR.'file');
4747
$expected = 'path'.DIRECTORY_SEPARATOR.'file';
4848
expect($result)->toBe($expected);
4949
});

0 commit comments

Comments
 (0)