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