/** * test the postal method of CnValidation * * @return void */ public function testPostal() { $this->assertTrue(CnValidation::postal('350000')); $this->assertTrue(CnValidation::postal('123456')); $this->assertFalse(CnValidation::postal('10075')); $this->assertFalse(CnValidation::postal('10x')); $this->assertFalse(CnValidation::postal('0851234')); }