Changeset 48950
- Timestamp:
- 09/06/2020 04:23:46 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/cache.php
r48949 r48950 48 48 } 49 49 50 /** 51 * @ticket 20004 52 */ 50 53 function test_add_get_null() { 51 54 $key = __FUNCTION__; 52 55 $val = null; 53 56 54 // You can store null in the cache. 57 // You can store `null` in the cache. 58 $this->assertTrue( $this->cache->add( $key, $val ) ); 59 $this->assertSame( $val, $this->cache->get( $key ) ); 60 } 61 62 /** 63 * @ticket 20004 64 */ 65 function test_add_get_false() { 66 $key = __FUNCTION__; 67 $val = false; 68 69 // You can store `false` in the cache. 55 70 $this->assertTrue( $this->cache->add( $key, $val ) ); 56 71 $this->assertSame( $val, $this->cache->get( $key ) );
Note: See TracChangeset
for help on using the changeset viewer.