예제 #1
0
 public function testConfigDiff()
 {
     $this->assertEmpty($this->configLogDiff->getId());
     $this->configLogDiff->setLog($this->configLog);
     $this->assertEquals($this->configLog, $this->configLogDiff->getLog());
     $this->configLogDiff->setClassName('className');
     $this->assertEquals('className', $this->configLogDiff->getClassName());
     $this->configLogDiff->setFieldName('fieldName');
     $this->assertEquals('fieldName', $this->configLogDiff->getFieldName());
     $this->configLogDiff->setScope('scope');
     $this->assertEquals('scope', $this->configLogDiff->getScope());
     $this->configLogDiff->setDiff(array('key' => 'value'));
     $this->assertEquals(array('key' => 'value'), $this->configLogDiff->getDiff());
 }