ChangeLog

Where changes are logged.

Notes

  • 2024-02-01: Scaffolded documentation

Git Log

git log on Fri, 02 Feb 2024 03:23:13 +0000

  • 1036e30 (HEAD -> v1.0) add links [11 minutes ago]
  • 7c4b2fc typo [11 minutes ago]
  • 994977d (origin/v1.0) major docs cleanup [11 hours ago]
  • 18d90cf composer update [11 hours ago]
  • 9f7ea52 updated directory configs [23 hours ago]
  • 0622d7e moved .config to config [23 hours ago]
  • 1679df1 - move cli script to bin/phptest [3 months ago]
  • f50e9c1 composer update taeluf/util [4 months ago]
  • f290b3e composer update taeluf/util for class finder [4 months ago]
  • 5bec13d bugfix for -class not being an array. add / improve output for when did_run_test() or will_run_test() fails [4 months ago]
  • 7ac3a93 bugfix for running named tests. composer update cli [4 months ago]
  • cf4ee86 add help descriptions to cli. add print-config bin command [4 months ago]
  • 341fde7 bugfix: server dir can now be empty or just a /. would fail previously. [4 months ago]
  • d3c6ff5 notes [4 months ago]
  • f00c381 bufix: server bootstrap file requireing was broken [4 months ago]
  • 02f2bd3 docs improved, scrawl run [4 months ago]
  • 8cd3da9 wrote updated docs [4 months ago]
  • 56e288f some additional code cleanup [4 months ago]
  • 0d458c9 coded new structure setup for servers (need to document) [4 months ago]
  • 969ee18 fix headers for CurlBrowser::get() [12 months ago]
  • a93e740 smol documentation [12 months ago]
  • 3cf8e55 improvemetns to curlopt_httpheader ... to allow post() to use key/value array rather than values in http header format [12 months ago]
  • 5797beb fix fo curl_browser->post() to make POST_FIELDS a query string if there are no FILEs being POSTed [12 months ago]
  • 6c6a815 add $curl_opts param to CurlBrowser get/post [12 months ago]
  • 10366eb add did_run_test & will_run_test [1 year, 1 month ago]
  • 256eea6 add test_will_run & test_did_run callbacks [1 year, 1 month ago]
  • 5b230fb add finish() lifecycle hook to Tester class. add dbQuery() method to Databasing trait [1 year, 1 month ago]
  • 516b1a4 fix strrpos null deprecated php 8.2 [1 year, 1 month ago]
  • 8c9aff6 small fix for php 8.2 compatability [1 year, 1 month ago]
  • 0e63881 documentation. add some features to the db trait [1 year, 1 month ago]
  • ad012a3 make dir.test an array in the default test config.json & update the readme to reflect [1 year, 1 month ago]
  • b10b25c run scrawl. update composer [1 year, 1 month ago]
  • 8b4c907 some slight documentation [1 year, 2 months ago]
  • 3cd7c84 fix a broken test & update taeluf/cli to php 8.2 compatible version [1 year, 2 months ago]
  • a69a381 make test compatibile with php 8.2 [1 year, 2 months ago]
  • 76baabe improve php8.2 compatability. add color to pass/fail printing in cli. add assertions passed/failed to cli printing [1 year, 2 months ago]
  • 02898b3 now works with php 8+ as well as pre 8, due to fixes to the class finder [1 year, 2 months ago]
  • c7dbb12 Merge branch 'v0.3' of gitlab.com:taeluf/php/php-tests into v0.3 [1 year, 2 months ago]
  • 54d2919 add str_contains_lines(). fix bin stuff [1 year, 2 months ago]
  • 4a3a614 fix bin script to work with updates to composer that stopped symlinking to the bin file [1 year, 2 months ago]
  • 863bf53 CurlBrowser implemented with get() & post(), including file upload support. no cookie support yet [1 year, 8 months ago]
  • 6543b1c nice progress on CurlBrowser [1 year, 8 months ago]
  • 025d7a3 add compare_dump() assertion [1 year, 8 months ago]
  • 7e54276 add error output for file not found (for file.require) instead of just failing to require_once() [1 year, 9 months ago]
  • b276b66 add assertion pass/fail count to test results output [1 year, 9 months ago]
  • a037797 add curl_get() method [1 year, 9 months ago]
  • 2dc9e1d add onBeforeTest() method to tester, which gets called before each test runs [1 year, 9 months ago]
  • 5282a72 add headers & cookies to curl_post() [1 year, 9 months ago]
  • d5206e8 post() no longer returns header [1 year, 10 months ago]
  • 4d92e75 cookie parsing from headers for curl_post [1 year, 10 months ago]
  • c423257 curl_close & no-follow on curl_post() [1 year, 10 months ago]
  • ad6c816 add curl_post() method to get a full response with headers, body, etc [1 year, 10 months ago]
  • 3723050 impovements to backward compat server stuff. str_contains now returns true or false, instead of always returning false [1 year, 10 months ago]
  • 6690c9e add webhost testing support [1 year, 10 months ago]
  • 2c99fcb test filtering is now done BEFORE tests are run & BEFORE prepare() is called, so that prepare() is only called if there are tests being run [1 year, 10 months ago]
  • 1363048 only run prepare() if there are methods to test in a class [1 year, 10 months ago]
  • 0c7b841 add message for when phptest is run from wrong dir [1 year, 10 months ago]
  • 3184f04 maybe now? [1 year, 10 months ago]
  • b74a545 okay, i think the autoload is actually fixed now [1 year, 10 months ago]
  • 07766eb maybe fix autoload issues [1 year, 10 months ago]
  • e400e6c try yet again [1 year, 10 months ago]
  • 138b631 umm. try again [1 year, 10 months ago]
  • e88238f hopefully fixed issue of tests being run twice [1 year, 10 months ago]
  • 8ff77ec hopefully fix a recursion error with autoloading [1 year, 10 months ago]
  • 41ad337 add multi-server support to post() [1 year, 10 months ago]
  • 4df48e1 add multi-server support [1 year, 10 months ago]
  • 5c52adc update readme [1 year, 10 months ago]
  • 2f9c1fc switched the system() call for a require() call [1 year, 10 months ago]
  • f916cae using passthru instead of system() to call vendor/bin/phptest from the system-wide phptest [1 year, 10 months ago]
  • bb22b42 idk [1 year, 10 months ago]
  • 8fe649f add class name to the footer of a test's results [2 years ago]
  • 0c31f41 wrap all the requires in anonymous functions for var scoping protection [2 years ago]
  • 08b5171 wrap require_once($path) in an anonymous function to prevent var namin gconflicts [2 years ago]
  • c27d3f2 add current_test property to tester class. add error printing + exception for faled dbExec() call [2 years ago]
  • 024a699 move prepare() to the end of Testser's constructor [2 years ago]
  • 2a19eed conditionally runs test class after checking if class exists ... formerly would just crash [2 years ago]
  • 90d495d add directory scanning to file.require config [2 years ago]
  • 7cb738e improve output for compare_lines() [2 years ago]
  • 7a1ac67 add optional printing to handleDidPass() [2 years ago]
  • 664bea9 add compare_lines() method [2 years ago]
  • cf5d3ab fix REQUEST_METHOD from POST to GET for get() with curl [2 years, 1 month ago]
  • 4bd7238 add print_r()... move get() to use curl_ instead of file_get_contents() [2 years, 1 month ago]
  • b174306 add dynamic ports to phptest server [2 years, 1 month ago]
  • 917753c fix file upload to send the actual file name [2 years, 1 month ago]
  • dd10e28 add file uploads to post() ... add mime_type_map for when mime_content_type() fails [2 years, 1 month ago]
  • 6461d1d notes [2 years, 1 month ago]
  • 5046df6 add post(/url/, [params]); method [2 years, 1 month ago]
  • 397f805 add compare_json [2 years, 1 month ago]
  • f408f08 add vararg to str_contains() & str_not_contains() [2 years, 1 month ago]
  • 9bbb69e fix: couldn't run a test unless you specified -class [2 years, 1 month ago]
  • 5c20ed2 add -class ClassName flag. document phptest cli options [2 years, 1 month ago]
  • ccf178c add compoare_objects() assertion [2 years, 2 months ago]
  • 6e12edd todo: stop using file_get_contens() [2 years, 2 months ago]
  • eb9f790 fix recursion caused by symlinking phptest from vendor dir to system installed dir [2 years, 2 months ago]
  • 206966d add file() method to tester [2 years, 2 months ago]
  • 12a7225 add compare_arrays() [2 years, 2 months ago]
  • f4bc382 exception testing works again [2 years, 2 months ago]
  • e029e28 general cleanup & some reorg of code [2 years, 2 months ago]
  • feda863 change: scrawl settings [2 years, 2 months ago]
  • f17ee1b add: backward_compatability notice [2 years, 2 months ago]
  • 8fac527 remove assertion pass/fail printing & class summary printing [2 years, 2 months ago]
  • 502637d refactors & changes cli output [2 years, 2 months ago]
  • d7ec1c3 refactor test running in Runner [2 years, 2 months ago]
  • da57ce3 cleanup docs [2 years, 2 months ago]
  • 8f949a6 delete .setup/ dir because it's not used [2 years, 2 months ago]
  • f9e7edb status notes [2 years, 2 months ago]
  • 2c2038a change: remove prompt before running vendor/bin/phptest. add error handling to Server::get() [2 years, 2 months ago]
  • 06c2a46 fix: double slash in get() path [2 years, 2 months ago]
  • 0931f83 fix: pass args to vendor/bin/phptest when redirecting [2 years, 2 months ago]
  • 879aa46 init fix [2 years, 2 months ago]
  • 1a7c581 improved init script [2 years, 2 months ago]
  • 64a124f fix bootstrap config in sample config file [2 years, 2 months ago]
  • 97b574e fix: namespace error when loading vendor/bin/phptest [2 years, 2 months ago]
  • b8a776a add: early implementation of server setup & testing [2 years, 2 months ago]
  • 1144262 update to code-scrawl v0.6 [2 years, 2 months ago]
  • f87450e fix: (same) [2 years, 2 months ago]
  • c2b510f fix: skip prompt for vendor/bin/phptest if being run from vendor dir [2 years, 2 months ago]
  • 4973412 offer vendor/bin/phptest if it is present [2 years, 2 months ago]
  • 36d932b make empty_dir recursive [2 years, 2 months ago]
  • 9cd3e2f composer lock [2 years, 2 months ago]
  • d8876bd composer lock [2 years, 2 months ago]
  • 9a68f66 documentation [2 years, 2 months ago]
  • d7a3c9f cleanup (delete old code) [2 years, 2 months ago]
  • 19dba71 fix: autoloader [2 years, 2 months ago]
  • 8f7f5e3 fix: autoloading from vendor/bin dir [2 years, 2 months ago]
  • d081cfc add backward compatability function & Taeluf\Tester class [2 years, 2 months ago]
  • 4eea9e9 docblocks [2 years, 2 months ago]
  • 68ad020 add file.require to run_dir [2 years, 2 months ago]
  • b8c348f idunno [2 years, 2 months ago]
  • 1f62070 seems to be working with new cli lib [2 years, 2 months ago]
  • 572ee18 (origin/v0.2, v0.2) add UtilityTrait & empty_dir() method [2 years, 2 months ago]
  • 21a5f87 add handling of testDirs config [2 years, 2 months ago]
  • f7469c5 add -class ClassName option to filter which class gets tested [2 years, 3 months ago]
  • f7b34e0 add set_error_handler config to disable built-in error handler [2 years, 3 months ago]
  • 1df55fc fixed the autoload fix [2 years, 3 months ago]
  • 2d41b1d doc about a config [2 years, 3 months ago]
  • 6e1ca70 test fix for 'autoload' config setting [2 years, 3 months ago]
  • be77de7 composer fix [2 years, 3 months ago]
  • 0153082 add cli property to tester class. add pwd & dir properties to NewCli class as public props [2 years, 3 months ago]
  • 23aae64 use var_dump instead of var_export in compare_raw to avoid circular reference error [2 years, 3 months ago]
  • 53b8828 add compare_raw method [2 years, 3 months ago]
  • ae084d5 namespace fix [2 years, 5 months ago]
  • 1019224 [no commit msg given] [2 years, 5 months ago]
  • be88372 note [2 years, 6 months ago]
  • fafae64 added early version of setting up a test. it still needs documentation [2 years, 6 months ago]
  • 7f47078 notes [2 years, 6 months ago]
  • 92dba1f set $this->options BEFORE calling $this->prepare() [2 years, 6 months ago]
  • f4fd314 add dir.require feature [2 years, 6 months ago]
  • 35dbb12 add description & dev dependency to composer.json [2 years, 7 months ago]
  • 121130d print new lines as literal n in array comparison output [2 years, 7 months ago]
  • f84fb05 print (inverted) on inverted tests [2 years, 7 months ago]
  • 3f741b5 add file.require option to list files to load before tests are run [2 years, 7 months ago]
  • 45e9174 add results.writeHtml config [2 years, 7 months ago]
  • a26acac add automatic assertions by mapping to global functions [2 years, 8 months ago]
  • 1253da6 fix strict comparison. Add is_false & is_true [2 years, 8 months ago]
  • d5c09a5 added dir excludes [2 years, 8 months ago]
  • db5b790 add license to composer.json [2 years, 8 months ago]
  • 1292c8c docs [2 years, 8 months ago]
  • e66399a more docs [2 years, 8 months ago]
  • dd89dc2 runs carwl [2 years, 8 months ago]
  • 9bb8fbb rename cli.php to phptest. add bin to composer.json [2 years, 8 months ago]
  • a0bf4c2 fix docs [2 years, 8 months ago]
  • f37beb8 install instructions. vendor autolaod bugfix [2 years, 8 months ago]
  • c2e8971 install instructions. made cli.php executable [2 years, 8 months ago]
  • 5b69125 some doc writing [2 years, 8 months ago]
  • c23650c delete old documentation [2 years, 8 months ago]
  • ea083c3 got is_a working to only run test classes. Notes. Namespace chage to tlf [2 years, 8 months ago]
  • b4adc19 notes [2 years, 8 months ago]
  • 49768b1 Cleanup folder structure. Delete old code [2 years, 8 months ago]
  • 9056782 new cli class written with significant improvements. added invert() method to assertions. minimal other changes [2 years, 8 months ago]
  • 64129ad composer + autoloading [2 years, 9 months ago]
  • 6eace21 small improvement to str_not_contains [2 years, 9 months ago]
  • 699e813 added some db functions [2 years, 10 months ago]
  • 2bfd406 [no commit msg given] [2 years, 10 months ago]
  • 554500d added prettyPrintArray feature [2 years, 10 months ago]
  • fe52ac0 y [2 years, 10 months ago]
  • 8cc868c improved single test running [2 years, 11 months ago]
  • 539b95d status update [2 years, 11 months ago]
  • f839367 [no commit msg given] [2 years, 11 months ago]
  • e88aca5 [no commit msg given] [2 years, 11 months ago]
  • c7097b4 error output in cli [2 years, 11 months ago]
  • 04bd1a4 added special cli output when specifying -test TestName [2 years, 11 months ago]
  • ec210d7 improve cli output [2 years, 11 months ago]
  • a4731d6 add isInstanceOf assertion [2 years, 11 months ago]
  • 2454da1 fix config file loading [2 years, 11 months ago]
  • 19838b9 [no commit msg given] [2 years, 11 months ago]
  • eabd1c3 bugfix: test was failing for successful try/catches if no comparison was done. [2 years, 11 months ago]
  • 6862e4b improve test() output [2 years, 11 months ago]
  • 3852c75 test must have at least one true assertion to pass. Assertions moved into a trait. str_contains & str_not_contains assertions are added. Helper functions for assertion output. [2 years, 11 months ago]
  • ad433cd notes [3 years ago]
  • 0b5ca27 compare() failure means test failure. Return value only considered if false [3 years ago]
  • a5219a0 (origin/v0.0, v0.0) correct error when target class file is not found or is a directory or a class is not found in the file [3 years ago]
  • e0e315e fix bug with testing exceptions [3 years ago]
  • 6061706 refactor test output and test running. Files found by CLI class are run automatically now [3 years ago]
  • bd065b3 remove old, commented code [3 years ago]
  • 7ce4aba Merge branch 'v0' of gitlab.com:taeluf/php-tests into v0 [3 years, 2 months ago]
  • d232679 output dir can be specified on Tester, allowing CLI to output to test dir [3 years, 2 months ago]
  • 0c2d51f Add LICENSE [3 years, 2 months ago]
  • 3744e7c moved readme to project root [3 years, 2 months ago]
  • 8d40e09 additional info about extra capabilities [3 years, 2 months ago]
  • a47d52e wrote readme file [3 years, 2 months ago]
  • 7705a1f cli-based running works now! :D Need to document [3 years, 2 months ago]
  • 5e4fbbd started writing new docs. Started writing cli test runner [3 years, 2 months ago]
  • 926cda5 some refactoring [3 years, 2 months ago]
  • e332fdd Project Initialized from local [3 years, 2 months ago]

Nov 24, 2021 Notes, from v0.2 Status.md

  • add handling for testDirs config so only php files in the configured test dirs are automatically included
  • add set_error_handler config. set false to disable tester's built in handler.
  • set $this->options BEFORE calling $this->prepare()
  • add dir.require config which accepts an array & will require_once each .php file in the directory (NOT recursive)
  • Print newlines as literal \n in array output
  • add file.require option, which takes an array & automatically requires any files in that array (relative to the current working directory)
  • add results.writeHtml config. Set false to disable writing an html results file
  • Add automatic assertions, where you can just call any existing function & it is treated as an assertion. Except you call it like $this->array_key_exists(...) to use array_key_exists(...) as an assertion.
  • phptest -test TestName now ONLY runs the named test. You might be able to specify multiple -tests... but I haven't tested it.
  • Create Assertions trait to group assertions
  • fixed bug with a throw/catch not marking test as passed
  • Different location for config files allowed
  • Improved cli output
  • Added -test TestName option to cli invocation to display extended output of a single test in cli
  • Added Databasing trait to make some db operations a little easier.