Adds a test of BaseScanner's function check_filename checking for .swf file
This commit setups a new test file which initializes new BaseScanner, allows to reset it and contains single test method checking if check_file function is WaD when it comes to .swf file
Adds a test method for testing a propper functionality of get_file_type method of BaseScanner
As we are using get_file_type method in one of our tests, we should make sure that the method is WaD first. The method is testing some basic file types + an swf file type as that one is the only used in other tests currently
Adds another get_fily_type function test for checking correct file type for .htm file as it should translate as html not htm
adds full test for catching swf file in a theme and fixes possible warnings caused by empty css and php files
Adding a full test for swf files should help with test coverage of swf file test case as it is not checking only if check_filename function if WaD, but also is checking if BaseScanner object holds corrent error levels for the specified file.
As our testcase does not contain a php and css files, I had to sanitize a code of BaseScanner class which was raising a PHP Warning (and thus breaking the phpunit run) for unset array key - checking for issset is enaugh in this case. My patch also contains yoda conditons style which I find more fool proof while developing.
Removes readme.md and readme.txt file updates from swffile branch
As I changed them in the master branch and they were not yet merged to original project, those tend to pop up in all PR I do and they make the PR unnecessary bloated
Merge pull request #164 from david-binda/swffiles

Add unit tests for swf file checks