TORONTO -- The Ontario government is considering to implement mandatory annual math testing for all teachers in the province.

Senior government sources have told The Canadian Press that teachers would be required to pass the test in order to continue to teach.

The test would apply to teachers at both the primary and secondary level even if the educator did not primarily teach mathematics.

The Progressive Conservative government has repeatedly promised to take measures to improve student math scores which have been declining for years across the province.

The government passed legislation Wednesday that will require all aspiring teachers in Ontario to pass a math test before receiving their licence to teach.

The sources could not immediately say what the test will look like or who will administer it, adding that the government would still need to consult with teachers and parents on the matter.

Last August, the Education Quality and Accountability Office, which administers standardized assessments in the province, said math test scores among public elementary students in Ontario have been decreasing over the last five years.

The agency also suggested that efforts by the previous Liberal government to reverse the trend haven't worked.

The EQAO data showed that 49 per cent of Grade 6 students met the provincial math standard last school year, down from 54 per cent in 2013-2014. Among Grade 3 students, the EQAO says 61 per cent met the provincial standard in 2017-2018, down from 67 per cent in 2013-2014.

Meanwhile, 45 per cent of Grade 9 students enrolled in an applied math course met the standard, while that figure stood at 84 for those in the academic math course. Academic courses focus more on abstract applications of concepts, while applied courses focus on the practical.

At the time, Education Minister Lisa Thompson called the results "unacceptable." Sources say the EQAO scores, combined with feedback from parents who are concerned about the issue, are prompting consideration of the new test for all teachers.

"How can we expect our students to do the math when our teachers can't?" a government source said.

Opposition critics have said the government should be bolstering curriculum supports and teacher training instead of imposing a test on teachers.