@@ -13,7 +13,7 @@ protected static function assertHtmlSelector(
13
13
string $ message = ''
14
14
): void
15
15
{
16
- self ::assertSame ($ expected , (new Crawler ($ document ))->filter ($ selector )->text (), $ message );
16
+ self ::assertSame ($ expected , (new Crawler ($ document ))->filter ($ selector )->text (null , true ), $ message );
17
17
}
18
18
19
19
protected static function assertNotHtmlSelector (
@@ -24,7 +24,7 @@ protected static function assertNotHtmlSelector(
24
24
): void
25
25
{
26
26
try {
27
- $ value = (new Crawler ($ document ))->filter ($ selector )->text ();
27
+ $ value = (new Crawler ($ document ))->filter ($ selector )->text (null , true );
28
28
} catch (InvalidArgumentException $ e ) {
29
29
$ value = '' ;
30
30
}
@@ -38,7 +38,7 @@ protected static function assertHtmlSelectorContains(
38
38
string $ message = ''
39
39
): void
40
40
{
41
- self ::assertContains ($ expected , (new Crawler ($ document ))->filter ($ selector )->text (), $ message );
41
+ self ::assertContains ($ expected , (new Crawler ($ document ))->filter ($ selector )->text (null , true ), $ message );
42
42
}
43
43
44
44
protected static function assertNotHtmlSelectorContains (
@@ -49,7 +49,7 @@ protected static function assertNotHtmlSelectorContains(
49
49
): void
50
50
{
51
51
try {
52
- $ value = (new Crawler ($ document ))->filter ($ selector )->text ();
52
+ $ value = (new Crawler ($ document ))->filter ($ selector )->text (null , true );
53
53
} catch (InvalidArgumentException $ e ) {
54
54
$ value = '' ;
55
55
}
@@ -101,7 +101,7 @@ protected static function assertXpathSelector(
101
101
string $ message = ''
102
102
): void
103
103
{
104
- self ::assertSame ($ expected , (new Crawler ($ document ))->filterXPath ($ xpath )->text (), $ message );
104
+ self ::assertSame ($ expected , (new Crawler ($ document ))->filterXPath ($ xpath )->text (null , true ), $ message );
105
105
}
106
106
107
107
protected static function assertNotXpathSelector (
@@ -112,7 +112,7 @@ protected static function assertNotXpathSelector(
112
112
): void
113
113
{
114
114
try {
115
- $ value = (new Crawler ($ document ))->filterXPath ($ xpath )->text ();
115
+ $ value = (new Crawler ($ document ))->filterXPath ($ xpath )->text (null , true );
116
116
} catch (InvalidArgumentException $ e ) {
117
117
$ value = '' ;
118
118
}
@@ -126,7 +126,7 @@ protected static function assertXpathSelectorContains(
126
126
string $ message = ''
127
127
): void
128
128
{
129
- self ::assertContains ($ expected , (new Crawler ($ document ))->filterXPath ($ xpath )->text (), $ message );
129
+ self ::assertContains ($ expected , (new Crawler ($ document ))->filterXPath ($ xpath )->text (null , true ), $ message );
130
130
}
131
131
132
132
protected static function assertNotXpathSelectorContains (
@@ -137,7 +137,7 @@ protected static function assertNotXpathSelectorContains(
137
137
): void
138
138
{
139
139
try {
140
- $ value = (new Crawler ($ document ))->filterXPath ($ xpath )->text ();
140
+ $ value = (new Crawler ($ document ))->filterXPath ($ xpath )->text (null , true );
141
141
} catch (InvalidArgumentException $ e ) {
142
142
$ value = '' ;
143
143
}
0 commit comments