assertInstanceOf(AtomInterface::class, $result); $this->assertEquals($value, $result->getValue()); } public function testCreateAtom0Fails() { $value = 0; $this->expectException(AtomException::class); $result = new UnsignedIntegerAtom($value); $this->assertEquals(false, $result, 'should have failed to create'); } public function testCreateNegativeAtomFails() { $value = -1; $this->expectException(AtomException::class); $result = new UnsignedIntegerAtom($value); $this->assertEquals(false, $result, 'should have failed to create'); } }