mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-16 00:44:44 +02:00
[Gab] feat: add new bridge GabBridge (#2920)
This commit is contained in:
parent
5b5f3b4254
commit
0a060b2ad6
4 changed files with 86 additions and 1 deletions
19
tests/UtilsTest.php
Normal file
19
tests/UtilsTest.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace RssBridge\Tests;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
final class UtilsTest extends TestCase
|
||||
{
|
||||
public function testTruncate()
|
||||
{
|
||||
$this->assertSame('f...', truncate('foo', 1));
|
||||
$this->assertSame('fo...', truncate('foo', 2));
|
||||
$this->assertSame('foo', truncate('foo', 3));
|
||||
$this->assertSame('foo', truncate('foo', 4));
|
||||
$this->assertSame('fo[...]', truncate('foo', 2, '[...]'));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue