File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 16
16
test/main/Utils/AMQP/AMQPPeclTest.class.php:
17
17
added suppot for pecl amqp 1.0.4
18
18
19
+ 2012-09-06 Igor V. Gulyaev
20
+
21
+ * main/Base/Hstore.class.php
22
+ test/main/HstoreTest.class.php: fix hstore key exist check
23
+
19
24
2012-08-28 Artem A. Naumenko
20
25
21
26
* main/Net/GenericUri.class.php: utf modifier added to RegExp pattern
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ public function drop($key)
85
85
86
86
public function isExists ($ key )
87
87
{
88
- return isset ( $ this ->properties [ $ key ] );
88
+ return key_exists ( $ key , $ this ->properties );
89
89
}
90
90
91
91
/**
Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ public function testRun()
16
16
$ array = array (
17
17
'1 ' => 'qqer ' ,
18
18
'f ' => 'qs34$9&)_@+#qer ' ,
19
+ 'null ' => null
19
20
);
20
21
21
22
$ test = Hstore::make ($ array );
22
23
$ test2 = Hstore::create ($ test ->toString ());
23
24
24
25
$ this ->assertEquals ($ test ->toString (), $ test2 ->toString ());
26
+
27
+ $ this ->assertTrue ($ test ->isExists ('null ' ));
28
+ $ this ->assertFalse ($ test ->isExists ('notExist ' ));
25
29
}
26
30
}
You can’t perform that action at this time.
0 commit comments