/** * Test if the method `isShorthandAllowed` returns false. */ public function testIsShorthandAllowedReturnsFalse() { $operator = new TernaryOperator(1, 2, 10, TernaryOperator::RIGHT, false, function () { }); $this->assertFalse($operator->isShorthandAllowed()); }