コード例 #1
0
 public function testHydratorClassMethodsOptions()
 {
     $hydrator = new ClassMethods();
     $this->assertTrue($hydrator->getUnderscoreSeparatedKeys());
     $hydrator->setOptions(array('underscoreSeparatedKeys' => false));
     $this->assertFalse($hydrator->getUnderscoreSeparatedKeys());
     $hydrator->setUnderscoreSeparatedKeys(true);
     $this->assertTrue($hydrator->getUnderscoreSeparatedKeys());
 }