示例#1
0
 public function testGetCustomSetterWillReturnTheCustomSetterValue()
 {
     $setFixture = new Fixture(self::USER, 'user', ['__set' => 'setterFunc'], null);
     $noSetFixture = new Fixture(self::USER, 'user', [], null);
     $this->assertEquals('setterFunc', $setFixture->getCustomSetter());
     $this->assertNull($noSetFixture->getCustomSetter());
 }