/** * Test that equal() returns true if 2 values are equal, disregarding type. */ public function testEqual() { $this->assertTrue(Validate::equal('1', 1)); $this->assertTrue(Validate::equal('abc', 'abc')); $this->assertTrue(Validate::equal(true, 1)); $this->assertFalse(Validate::equal('1', 9)); $this->assertFalse(Validate::equal('abc', 'foo')); $this->assertFalse(Validate::equal(true, false)); }