diff --git a/test/Filter/ValidatorTest.php b/test/Filter/ValidatorTest.php index c34174ab..9cd55cae 100644 --- a/test/Filter/ValidatorTest.php +++ b/test/Filter/ValidatorTest.php @@ -35,8 +35,8 @@ public function testValidatorFilter() public function testValidatorChain() { $validatorChain = new ValidatorChain(); - $validatorChain->addValidator(new DigitsFilter()); - $validatorChain->addValidator(new Int()); + $validatorChain->attach(new DigitsFilter()); + $validatorChain->attach(new Int()); $filter = new Validator($validatorChain); $this->assertTrue($filter->filter(array('message' => '123'))); $this->assertFalse($filter->filter(array('message' => 'test')));