Exemplo n.º 1
0
 /**
  * @test
  */
 public function equalsReturnsFalseIfEnumerationOfSameTypeWithDifferentValueIsGiven()
 {
     $enumerationFoo = new Enumeration\CompleteEnumeration(1);
     $enumerationBar = new Enumeration\CompleteEnumeration('foo');
     $this->assertFalse($enumerationFoo->equals($enumerationBar));
 }
Exemplo n.º 2
0
 /**
  * @test
  * @expectedException \Dkd\Enumeration\Exception\InvalidEnumerationValueException
  */
 public function setValueToAnInvalidValueThrowsException()
 {
     $enumeration = new Fixture\Enumeration\CompleteEnumeration(1);
     $enumeration->_call('setValue', 2);
     $this->assertEquals(2, $enumeration->_get('value'));
 }