Changeset 48949
- Timestamp:
- 09/06/2020 03:35:59 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/cache.php
r48948 r48949 44 44 45 45 // You can store zero in the cache. 46 $this-> cache->add( $key, $val);46 $this->assertTrue( $this->cache->add( $key, $val ) ); 47 47 $this->assertSame( $val, $this->cache->get( $key ) ); 48 48 } … … 52 52 $val = null; 53 53 54 // You can store null in the cache. 54 55 $this->assertTrue( $this->cache->add( $key, $val ) ); 55 // Null is converted to empty string. 56 $this->assertEquals( '', $this->cache->get( $key ) ); 56 $this->assertSame( $val, $this->cache->get( $key ) ); 57 57 } 58 58
Note: See TracChangeset
for help on using the changeset viewer.