You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0630af0
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: tests/system/Helpers/TextHelperTest.php
+4-10Lines changed: 4 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -452,30 +452,24 @@ public function testExcerptRadius(): void
452
452
453
453
publicfunctiontestExcerptPhraseNotFound(): void
454
454
{
455
-
$result = ' Once upon a time, a framework had no tests. It sad So some nice people began to write tests. The more time that went on, the happier it became. ...';
456
455
$this->assertSame(
457
-
$result,
456
+
' Once upon a time, a framework had no tests. It sad So some nice people began to write tests. The more time that went on, the happier it became. ...',
458
457
excerpt($this->longString, 'nonexistent'),
459
458
);
460
-
461
-
$multibyteResult = ' Давным-давно во фреймворке не было тестов. Это печ льно. И вот несколько хороших людей начали писать тесты. Чем больше времени проходило, тем ...';
462
459
$this->assertSame(
463
-
$multibyteResult,
460
+
' Давным-давно во фреймворке не было тестов. Это печ льно. И вот несколько хороших людей начали писать тесты. Чем больше времени проходило, тем ...',
464
461
excerpt($this->mbLongString, 'несуществующее'),
465
462
);
466
463
}
467
464
468
465
publicfunctiontestExcerptOddRadius(): void
469
466
{
470
-
$result = ' Once upon a time, a framework had no tests. It sad So some nice people began to write tests. The more time that went on, the happier it became. ...';
471
467
$this->assertSame(
472
-
$result,
468
+
' Once upon a time, a framework had no tests. It sad So some nice people began to write tests. The more time that went on, the happier it became. ...',
473
469
excerpt($this->longString, null, 101),
474
470
);
475
-
476
-
$multibyteResult = ' Давным-давно во фреймворке не было тестов. Это печ льно. И вот несколько хороших людей начали писать тесты. Чем больше времени проходило, тем ...';
477
471
$this->assertSame(
478
-
$multibyteResult,
472
+
' Давным-давно во фреймворке не было тестов. Это печ льно. И вот несколько хороших людей начали писать тесты. Чем больше времени проходило, тем ...',
0 commit comments