Friday, 12 August 2016

my sourcetree refresh continuously

In my case,
some programs save file or create new file in git continuoly so it make sourcetree refresh continuously.

Example: crontab alway run to save files. so try removing crontab.

Wednesday, 10 August 2016

Tuesday, 9 August 2016

common used functions in testing cakephp 3x

Command line

  ./vendor/bin/phpunit tests/TestCase/Model/Table/UsersTableTest

vendor/bin/phpunit   tests/TestCase/Controller/SettingsControllerTest.php

vendor/bin/phpunit   tests/TestCase/Controller/UsersControllerTest.php --coverage-html webroot/coverage  --whitelist src/Controller/UsersController.php



Monday, 4 July 2016

MissingDatasourceConfigException: The datasource configuration "default"...





https://github.com/cakephp/bookmarker-tutorial/blob/master/tests/bootstrap.php
https://github.com/cakephp/bookmarker-tutorial/blob/master/phpunit.xml.dist