/** * @test */ public function convertToBooleanProperlyConvertsObjects() { $this->assertFalse(BooleanNode::convertToBoolean(NULL)); $this->assertTrue(BooleanNode::convertToBoolean(new \stdClass())); }
/** * @test */ public function convertToBooleanProperlyConvertsObjects() { $this->assertFalse(BooleanNode::convertToBoolean(NULL)); $this->assertTrue(BooleanNode::convertToBoolean(new \stdClass())); }