コード例 #1
0
ファイル: EnumTest.php プロジェクト: wepay/common
 /**
  * @covers ::is
  */
 public function testIsNoMatch()
 {
     $f = new EnumFixture(EnumFixture::February);
     $this->assertFalse($f->is(EnumFixture::January));
 }
コード例 #2
0
ファイル: EnumTest.php プロジェクト: firehed/common
 /** @covers ::is */
 public function testNoMatchDifferentClassDifferentValue()
 {
     $f = new EnumFixture(EnumFixture::January);
     $test = new EnumFixture2(EnumFixture2::February);
     $this->assertFalse($f->is($test));
 }