We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2488eba commit ec30b5eCopy full SHA for ec30b5e
tests/Support/SupportStrTest.php
@@ -129,7 +129,15 @@ public function testStrBeforeLast()
129
130
public function testStrBetween()
131
{
132
+ $this->assertSame('abc', Str::between('abc', '', 'c'));
133
+ $this->assertSame('abc', Str::between('abc', 'a', ''));
134
+ $this->assertSame('abc', Str::between('abc', '', ''));
135
+ $this->assertSame('b', Str::between('abc', 'a', 'c'));
136
+ $this->assertSame('b', Str::between('dddabc', 'a', 'c'));
137
+ $this->assertSame('b', Str::between('abcddd', 'a', 'c'));
138
+ $this->assertSame('b', Str::between('dddabcddd', 'a', 'c'));
139
$this->assertSame('nn', Str::between('hannah', 'ha', 'ah'));
140
+ $this->assertSame('a]ab[b', Str::between('[a]ab[b]', '[', ']'));
141
$this->assertSame('foo', Str::between('foofoobar', 'foo', 'bar'));
142
$this->assertSame('bar', Str::between('foobarbar', 'foo', 'bar'));
143
}
0 commit comments