unit testing - Use PHP Spectator/Spectator inside BDD Behat feature class

one text

I am new BDD and I am using Behat to write some BDD tests. I was wondering if I can able to integrate Spectator/Spectator to do api testing while using Behat. Spectator will read my swagger.json and do validation during api testing inside feature context class.

It seems like Spectator/Spectator has been meant to use inside php unit testing and won't work with Behat.

Has anyone used Spectator/Spectator inside Behat feature class to test their rest api?

Source