From 1589b42a10f3608b2d038532be21092c7d5b27d2 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 1 Feb 2020 22:35:41 +0000 Subject: [PATCH] test_truncate --- core/tests/polyfills.test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/tests/polyfills.test.php b/core/tests/polyfills.test.php index 2a833cbc..84497096 100644 --- a/core/tests/polyfills.test.php +++ b/core/tests/polyfills.test.php @@ -81,12 +81,12 @@ class PolyfillsTest extends \PHPUnit\Framework\TestCase ); } - public function truncate() + public function test_truncate() { $this->assertEquals(truncate("test words", 10), "test words"); - $this->assertEquals(truncate("test words", 6), "test..."); - $this->assertEquals(truncate("test words", 9), "test..."); - $this->assertEquals(truncate("test words", 2), "te..."); + $this->assertEquals(truncate("test...", 9), "test..."); + $this->assertEquals(truncate("test...", 6), "test..."); + $this->assertEquals(truncate("te...", 2), "te..."); } public function test_shorthand_int()