Class BackgroundTaskTest.  
 More...
Class BackgroundTaskTest. 
disabled  disabled  disabled
- Author
 - Oskar Truffer ot@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch 
 
Definition at line 23 of file ValueTest.php.
 
◆ testIntegerValue()
      
        
          | ValueTest::testIntegerValue  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 25 of file ValueTest.php.
   28         $integer->setValue(3);
    30         $integer2->setValue(3);
    32         $integer3->setValue(4);
    34         $this->assertEquals($integer->getValue(), 3);
    35         $this->assertTrue($integer->equals($integer2));
    36         $this->assertEquals($integer->getHash(), $integer2->getHash());
    37         $this->assertNotEquals($integer->getHash(), $integer3->getHash());
    38         $integer3->unserialize($integer->serialize());
    39         $this->assertTrue($integer->equals($integer3));
    40         $this->assertTrue($integer->getType()->equals(
new SingleType(IntegerValue::class)));
 
 
 
 
◆ testListValue()
      
        
          | ValueTest::testListValue  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 43 of file ValueTest.php.
   46         $list->setValue([1, 2, 3]);
    48         $this->assertTrue($list->getType()->equals(
new ListType(IntegerValue::class)));
    52         $integer1->setValue(1);
    54         $string->setValue(
"1");
    55         $list2->setValue([$integer1, $string]);
    57         $this->assertTrue($list2->getType()->equals(
new ListType(ScalarValue::class)));
 
 
 
 
The documentation for this class was generated from the following file: