Republic Act 11166 aims to prevent acts of discrimination against people infected with HIV. This includes workplace discrimination. What that means is that even if someone had HIV he or she cannot be forced to resign or otherwise discriminated against because of his status.
In the example stated, the worker underwent voluntary testing. There is nothing wrong with that, In fact, testing is encouraged so that they will know their status and hopefully prevent the spread of the disease. What is wrong is that the employer spread news of the conditions to the other workers. The employer had no right to disclose someone else's medical condition. Article VI Section 44 makes disclosure without written permission illegal. Likewise, Section 46 calls for employers to prevent discrimination, provisions violated by the employer in the hypothetical situation.
This issue is a sensitive one and it is best dealt with the most respect for the people involved.
For more information: