/** * @test */ public function withOutTest() { $ret1 = $this->bitmask->with(256); $ret2 = $this->bitmask->without(256); $this->assertTrue($ret1 instanceof BitMask && $ret2 instanceof BitMask && $ret1 !== $this->bitmask && $ret2 !== $this->bitmask && $ret2 !== $ret1 && $ret1->getMask() === self::MASK + 256 && $ret2->getMask() === self::MASK); }