public function test_strip_library_id_from_text() { $text = 'foo bar <i><b>Test/foo/bar/baz.pg</b></i> baz'; $expected = 'foo bar baz'; $pf = new \WeBWorK\Server\Util\ProblemFormatter(); $this->assertSame($expected, $pf->strip_library_id_from_text($text)); }