예제 #1
0
 public function testRemovingStrategy()
 {
     $this->assertAttributeCount(0, 'strategies', $this->hydrator);
     $this->hydrator->addStrategy('myStrategy', new TestAsset\HydratorStrategy());
     $this->assertAttributeCount(1, 'strategies', $this->hydrator);
     $this->hydrator->removeStrategy('myStrategy');
     $this->assertAttributeCount(0, 'strategies', $this->hydrator);
 }