Execute/Write PHP-Unit Tests

Hello,
i just cloned the SuiteCRM-Project from https://github.com/salesagility/SuiteCRM.git.
This contains a folder named “tests”.

How do i execute those tests?

If i run the “runtests.sh” file it just says “runtests.sh: 2: runtests.sh: …/vendor/bin/phpunit: not found”
And if i want to run tests manually with the following command: “phpunit AOS_QuotesTest.php” it says “PHP Fatal error: Class ‘AOS_Quotes’ not found in /var/www/SuiteCRM/tests/tests/modules/AOS_Quotes/AOS_QuotesTest.php on line 9”

Another question: How do i write phpunit-tests for suitecrm by myself? Which files do i need to include so that my test-class knows all suitecrm-objects?

Hi
you will need to install phpunit as a dev dependency using composer

run this in the root directory of the crm system

composer require --dev phpunit/phpunit