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