public function test_remove_last_containing_value() { $this->assertSame("HelloGoodbyeGoodbye", Str::removeLast("HelloGoodbyeHelloGoodbye", "Hello")); $this->assertSame("HelloGoodbyeGoodbye", Str::removeLast("HelloGoodbyeHELLOGoodbye", "hello", false)); }