/** * @group utility */ function testIsCurrency() { $this->assertFalse(InputValidator::isCurrency("")); $this->assertFalse(InputValidator::isCurrency(123)); $this->assertFalse(InputValidator::isCurrency("notvalid")); $this->assertFalse(InputValidator::isCurrency("eur")); $this->assertFalse(InputValidator::isCurrency("NotValid")); $this->assertFalse(InputValidator::isCurrency("nv")); $this->assertTrue(InputValidator::isCurrency("EUR")); }