@@ -64,21 +64,21 @@ protected function get_test_html(string $alttext): string {
64
64
*/
65
65
public static function img_alt_text_provider (): array {
66
66
return [
67
- 'Alt text <= 125 characters ' => [
67
+ 'Alt text <= 750 characters ' => [
68
68
true ,
69
- str_repeat ("Hello world! " , 10 ),
69
+ str_repeat ("Hello world! " , 60 ),
70
70
],
71
- 'Alt text > 125 characters ' => [
71
+ 'Alt text > 750 characters ' => [
72
72
false ,
73
- str_repeat ("Hello world! " , 25 ),
73
+ str_repeat ("Hello world! " , 65 ),
74
74
],
75
- 'Multi-byte alt text <= 125 characters ' => [
75
+ 'Multi-byte alt text <= 750 characters ' => [
76
76
true ,
77
- str_repeat ('こんにちは、世界! ' , 13 ),
77
+ str_repeat ('こんにちは、世界! ' , 83 ),
78
78
],
79
- 'Multi-byte alt text > 125 characters ' => [
79
+ 'Multi-byte alt text > 750 characters ' => [
80
80
false ,
81
- str_repeat ('こんにちは、世界! ' , 30 ),
81
+ str_repeat ('こんにちは、世界! ' , 90 ),
82
82
],
83
83
];
84
84
}
@@ -96,7 +96,7 @@ public function test_check(bool $expectedpass, string $alttext): void {
96
96
if ($ expectedpass ) {
97
97
$ this ->assertEmpty ($ results );
98
98
} else {
99
- $ this ->assertTrue ( $ results [0 ]->element ->tagName === ' img ' );
99
+ $ this ->assertEquals ( ' img ' , $ results [0 ]->element ->tagName );
100
100
}
101
101
}
102
102
}
0 commit comments