Exemple #1
0
 /**
  * @expectedException \Objection\Exceptions\InvalidPropertySetupException
  */
 public function test_createEnum_CreateUsingNotTConstsClass()
 {
     LiteSetup::createEnum(\stdClass::class);
 }
 public function test_fixValue_Null()
 {
     $this->assertNull(ValueValidation::fixValue(LiteSetup::create(VarType::BOOL, true, true), null));
     $this->assertNull(ValueValidation::fixValue(LiteSetup::createEnum(['a', 'b'], null, true), null));
     $this->assertNull(ValueValidation::fixValue(LiteSetup::create(VarType::MIXED, $this, true), null));
 }