|
@@ 633-644 (lines=12) @@
|
| 630 |
|
$this->assertTrue(is_int($result), 'Wrong data type. If we store an int we must get an int back.'); |
| 631 |
|
} |
| 632 |
|
|
| 633 |
|
public function testDataTypeFloat() |
| 634 |
|
{ |
| 635 |
|
if (isset($this->skippedTests[__FUNCTION__])) { |
| 636 |
|
$this->markTestSkipped($this->skippedTests[__FUNCTION__]); |
| 637 |
|
} |
| 638 |
|
|
| 639 |
|
$float = 1.23456789; |
| 640 |
|
$this->cache->set('key', $float); |
| 641 |
|
$result = $this->cache->get('key'); |
| 642 |
|
$this->assertTrue(is_float($result), 'Wrong data type. If we store float we must get an float back.'); |
| 643 |
|
$this->assertEquals($float, $result); |
| 644 |
|
} |
| 645 |
|
|
| 646 |
|
public function testDataTypeBoolean() |
| 647 |
|
{ |
|
@@ 672-684 (lines=13) @@
|
| 669 |
|
$this->assertEquals($array, $result); |
| 670 |
|
} |
| 671 |
|
|
| 672 |
|
public function testDataTypeObject() |
| 673 |
|
{ |
| 674 |
|
if (isset($this->skippedTests[__FUNCTION__])) { |
| 675 |
|
$this->markTestSkipped($this->skippedTests[__FUNCTION__]); |
| 676 |
|
} |
| 677 |
|
|
| 678 |
|
$object = new \stdClass(); |
| 679 |
|
$object->a = 'foo'; |
| 680 |
|
$this->cache->set('key', $object); |
| 681 |
|
$result = $this->cache->get('key'); |
| 682 |
|
$this->assertTrue(is_object($result), 'Wrong data type. If we store object we must get an object back.'); |
| 683 |
|
$this->assertEquals($object, $result); |
| 684 |
|
} |
| 685 |
|
|
| 686 |
|
public function testBinaryData() |
| 687 |
|
{ |