public function testEndWith() { // заканчивается на строку $needle = "incididunt ut labore et dolore magna aliqua."; $result = \Cloudstash\Helper\Str::EndWith($needle, $this->eng_lorem_ipsum); $this->assertTrue($result); // не заканчивается на строку $needle = "sed do eiusmod tempor incididunt"; $result = \Cloudstash\Helper\Str::EndWith($needle, $this->eng_lorem_ipsum); $this->assertFalse($result); }