Fix coding standards and improve assertions.
Fix coding standards and improve assertions.

tenkoma/cakephp,tenkoma/cakephp,CakeDC/cakephp,CakeDC/cakephp,CakeDC/cakephp,petteyg/cakephp,dakota/cakephp,cakephp/cakephp,ndm2/cakephp,garethellis36/cakephp,tenkoma/cakephp,dakota/cakephp,ADmad/cakephp,ADmad/cakephp,CakeDC/cakephp,ndm2/cakephp,mvdriel/cakephp,cakephp/cakephp,dakota/cakephp,ndm2/cakephp,mvdriel/cakephp,dakota/cakephp,mvdriel/cakephp,petteyg/cakephp,ndm2/cakephp,petteyg/cakephp,cakephp/cakephp,garethellis36/cakephp,petteyg/cakephp,tenkoma/cakephp,mvdriel/cakephp,ADmad/cakephp,ADmad/cakephp,garethellis36/cakephp,cakephp/cakephp,garethellis36/cakephp