Monday 6 March 2017

Six false value of JavaScript

  1. false
  2. 0 (zero)
  3. "" (empty string)
  4. null
  5. undefined
  6. NaN (a special Number value meaning Not-a-Number!)

Every else is true.

Sunday 30 October 2016

Resolve class not found when running PHPunit test with Netbeans and Symfony

I have been searching all day for solution for this. Hopefully this will help and save somebody's time. I have been following Jobeet tutorial and try to run phpunit test but without include the class I want to test, Netbeans will always complain that it could not find the class. Strangely enough, running the test on command line is ok. If anyone can explain that to me, it will be highly appreciated.

Many of the resources on the Internet will tell you to set the bootstrap property of the project to bootstrap.php.cache. However, that does not work. This is what I did to make it work;

  1. Right click on the project and select properties.
  2. Under Testing, select PHPUnit on the dialog.
  3. Check Use Bootstrap options.
  4. Click browse to select bootstrap file.
  5. Choose your app/autoload.php.
  6. Click ok and run your test again.

This should work now.