コード例 #1
0
ファイル: ValidateTest.php プロジェクト: titon/utility-old
 /**
  * Test that exact() returns true if 2 values are exact while checking type.
  */
 public function testExact()
 {
     $this->assertTrue(Validate::exact(1, 1));
     $this->assertTrue(Validate::exact('abc', 'abc'));
     $this->assertTrue(Validate::exact(true, true));
     $this->assertFalse(Validate::exact('1', 1));
     $this->assertFalse(Validate::exact(true, 1));
 }