If you are after finding bottleneks and checking "how long each bit of code takes", then you can use Profiler feature of Xdebug. As a result, unit tests find problems early in the development cycle. A unit test provides a strict, written contract that the piece of code must satisfy. The goal of unit testing is to isolate each part of the program and show that the individual parts are correct. Like all Unit testing frameworks PHPUnit uses assertions to verify that behaviour of the unit of code under test behaves as expected. PHPUnit is a unit testing software framework for PHP. Hi there, phpUNIT is the thing that allows for tracking how long each bit of code takes to run and shows the bottlenecks right? What do I do and how do I do it I guess is what I need to know. I have no idea how to test if phpUNIT even works correctly after the install or not. Xdebug I got working and that is mostly self explanitory I just can't get my head around phpUNIT right now for some reason. I read what I could find in the forum and on the site about configuring things with Xdebug and some about phpUnit but I really don't understand it much yet. I have used code compilers and debuggers before but I don't really code in C++ or anything like that yet, sort of a little python and am ok with actionscript. I am totally new to this part of coding, the debugger stuff when it comes to php. I read through their site and looked through the manual pages but I don't understand any of what it says about calls and how to setup tests, or even what tests I can setup. I do not understand anything about it other than that. phpUNIT is the thing that allows for tracking how long each bit of code takes to run and shows the bottlenecks right? With that bit of a background that basically lets you know where I am coming from, I don't know much about this stuff yet but I am learning. I manually installed and configured php.ini to properly work with Xdebug and have been able to use that with phpStorm and it works like in the video's. I was able to install pear and have it install phpUNIT. I have been able to install pear into my php installation on my testing environment, I use Windows XP and WIndows 7 with vertrigo server that has Apache, Php, Mysql and I added perl, python and few others over last year but I primarily only code using PHP and Mysql. I have never heard of Xdebug, phpUNIT and a sluegh of other technologies and terms I came up against over the last few days. Trying out each one and narrowing down to the most usable for me and has the most amount of features I am looking for. I looked at eclipse, netbeans, codelobster, aptana and 3 other commercial competitors. BUT, even though it is great I would really like an all inclusive tool to help me, so over the last few days I have been researching IDE's that allow for php, mysql, css, xhtml, html, ajax, js coding and being able to track and help me figure out what is what and hopefully help me code better and make things more secure and effecient with all the database calls and help find bottlenecks etc. The main IDE I have used is dreamweaver cs3, I have plenty of plugins and database design specific plugins that is mainly reason I ever open up DW, until I recently discovered I can access that particular tool without ever needing to open DW which was the only reason I ever when into DW anyway. It's like using an abacus to predict weather patterns, good luck with that. It is fine when doing a project with only 10 or so files but when you get into 30 or more and in different folders etc. Really sick of doing all that and flipping back and forth from 3 or 4 differrent software, browsers and what not. I am coming from a strictly hand coding experience, using PsPad, phpMyAdmin and a white board to layout the logic and diagram out my functions and code when I can't figure out what I did wrong that screwed it all up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |