1
- --TEST--
2
- GtkLabel->set_track_visited_links method
3
- --SKIPIF--
4
- <?php
5
- if (!extension_loaded ('php-gtk ' )) die ('skip - PHP-GTK extension not available ' );
6
- if (!method_exists ('GtkLabel ' , 'set_track_visited_links ' )) die ('skip - GtkLabel->set_track_visited_links not available, requires GTK 2.18 or higher ' );
7
- ?>
8
- --FILE--
9
- <?php
10
- $ label = new GtkLabel ();
11
-
12
- $ label ->set_track_visited_links (true );
13
- var_dump ($ label ->get_track_visited_links ());
14
-
15
- /* Wrong number args*/
16
- $ label ->set_track_visited_links ();
17
- $ label ->set_track_visited_links (true , 1 );
18
-
19
- /* Arg 1 must be stringable */
20
- $ label ->set_track_visited_links (array ());
21
- ?>
22
- --EXPECTF--
23
- bool(true)
24
-
25
- Warning: GtkLabel::set_track_visited_links() requires exactly 1 argument, 0 given in %s on line %d
26
-
27
- Warning: GtkLabel::set_track_visited_links() requires exactly 1 argument, 2 given in %s on line %d
28
-
1
+ --TEST--
2
+ GtkLabel->set_track_visited_links method
3
+ --SKIPIF--
4
+ <?php
5
+ if (!extension_loaded ('php-gtk ' )) die ('skip - PHP-GTK extension not available ' );
6
+ if (!method_exists ('GtkLabel ' , 'set_track_visited_links ' )) die ('skip - GtkLabel->set_track_visited_links not available, requires GTK 2.18 or higher ' );
7
+ ?>
8
+ --FILE--
9
+ <?php
10
+ $ label = new GtkLabel ();
11
+
12
+ $ label ->set_track_visited_links (true );
13
+ var_dump ($ label ->get_track_visited_links ());
14
+
15
+ /* Wrong number args*/
16
+ $ label ->set_track_visited_links ();
17
+ $ label ->set_track_visited_links (true , 1 );
18
+
19
+ /* Arg 1 must be stringable */
20
+ $ label ->set_track_visited_links (array ());
21
+ ?>
22
+ --EXPECTF--
23
+ bool(true)
24
+
25
+ Warning: GtkLabel::set_track_visited_links() requires exactly 1 argument, 0 given in %s on line %d
26
+
27
+ Warning: GtkLabel::set_track_visited_links() requires exactly 1 argument, 2 given in %s on line %d
28
+
29
29
Warning: GtkLabel::set_track_visited_links() expects argument 1 to be boolean, array given in %s on line %d
0 commit comments