assertInstanceOf(AtomInterface::class, $result); $this->assertEquals($value, $result->getValue()); } /** * @expectedException \Enzyme\Axiom\Exceptions\AtomException */ public function testCreateAtom0Fails() { $value = 0; $result = new UnsignedIntegerAtom($value); $this->assertEquals(false, $result, 'should have failed to create'); } /** * @expectedException \Enzyme\Axiom\Exceptions\AtomException */ public function testCreateNegativeAtomFails() { $value = -1; $result = new UnsignedIntegerAtom($value); $this->assertEquals(false, $result, 'should have failed to create'); } }