validator = new BooleanValidator; } /** * testValidate * * @return void */ public function testValidate() { $validator = $this->validator; $this->assertEquals(false, $validator->validate('0XCA35B7D915458EF540ADE6068DFE2F44E8FA733C')); $this->assertEquals(false, $validator->validate(0xCA35B7D915458EF540ADE6068DFE2F44E8FA733C)); $this->assertEquals(true, $validator->validate(true)); } }