1--TEST--
2IntlCodePointBreakIterator: clone and equality
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8ini_set("intl.default_locale", "pt_PT");
9
10$text = 'ตัวอย่างข้อความ';
11$text2 = 'foo';
12
13$it = IntlBreakIterator::createCodePointInstance();
14$it->setText($text);
15
16$it_clone = clone $it;
17var_dump($it == $it_clone);
18
19$it->setText($text2 );
20var_dump($it == $it_clone);
21
22$it_clone->setText($text2);
23var_dump($it == $it_clone);
24
25?>
26--EXPECT--
27bool(true)
28bool(false)
29bool(true)
30