@@ -23,7 +23,7 @@ public function testParsingOfDocument(): void
2323 'dolor ' ,
2424 'sit ' ,
2525 'amet", ' ,
26- 'consectetur ' ,
26+ " 'consectetur' " ,
2727 'adipiscing ' ,
2828 'elit. ' ,
2929 'proin ' ,
@@ -62,7 +62,6 @@ public function testParsingOfLineNumberedDocument(): void
6262 'ex ' ,
6363 'libero, ' ,
6464 'porttitor ' ,
65- 'a ' ,
6665 'elit ' ,
6766 'eget, ' ,
6867 'maximus ' ,
@@ -78,7 +77,7 @@ public function testParsingOfLineNumberedDocument(): void
7877 public function testCreatePatternFromString (): void
7978 {
8079 $ string = 'Innovations and new advances for this world: a survey ' ;
81- $ expectedPattern = ['innovations ' , 'and ' , 'new ' , 'advances ' , 'for ' , 'this ' , 'world: ' , 'a ' , ' survey ' ];
80+ $ expectedPattern = ['innovations ' , 'and ' , 'new ' , 'advances ' , 'for ' , 'this ' , 'world: ' , 'survey ' ];
8281
8382 $ patternCreated = $ this ->contentParser ->createPatternFromString ($ string );
8483 $ this ->assertEquals ($ expectedPattern , $ patternCreated );
@@ -97,7 +96,11 @@ public function testCleansOtherCharactersFromTitle(): void
9796 {
9897 $ title = 'Reflections on “Arrival” and brazilian sign language (LIBRAS) ' ;
9998 $ expectedCleanedTitle = 'Reflections on "Arrival" and brazilian sign language (LIBRAS) ' ;
99+ $ cleanedTitle = $ this ->contentParser ->cleanStyledText ($ title );
100+ $ this ->assertEquals ($ expectedCleanedTitle , $ cleanedTitle );
100101
102+ $ title = 'Schindler’s List: ‘absolut cinema’ ' ;
103+ $ expectedCleanedTitle = "Schindler's List: 'absolut cinema' " ;
101104 $ cleanedTitle = $ this ->contentParser ->cleanStyledText ($ title );
102105 $ this ->assertEquals ($ expectedCleanedTitle , $ cleanedTitle );
103106 }
0 commit comments