php - Can JS files be included in PHPUnit tests? -
i working on creating multilingual test cases. accomplish have utilize js files used application. there way load files phpunit scripts?
not exclusively sure trying achieve, assuming want take existing js file , execute it's contents in selenium. can utilize file_get_contents()
function.
$script = file_get_contents('/path/to/your/script.js'); $this->execute(['script' => $script, 'args' => []]);
php selenium phpunit
No comments:
Post a Comment