CiviCRM HelloTest.php

Published: Sep 14, 2017

Totten does phpunit4 HelloTest.php at https://www.youtube.com/watch?v=uN6CQKwZiVQ but my result was (on both 4.6.4 and 4.7.23):

1) HelloTest::testGet
session_start(): Cannot send session cookie - headers already sent by (output started at phar:///home/vagrant/buildkit/bin/phpunit4/phpunit/Util/Printer.php:134)

Please make sure "session.auto_start": "1" in php.ini and verify with cv api system.get

Last modified: September 14, 2017 5:39 pm
Posted in: Snippets