[BUGFIX] t3lib_lock: Clean up constructor and add unit tests
authorChristian Kuhn <lolli@schwarzbu.ch>
Sun, 21 Aug 2011 09:28:13 +0000 (11:28 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Sun, 21 Aug 2011 15:48:13 +0000 (17:48 +0200)
commit02cfeb7861613a750c0e1e8211c9d3c08ef6c693
tree4ee35e1d97838a6720d7297ab92123c7cb12713e
parentf2c206000b0b6e0f11cebcb99561c5355a218530
[BUGFIX] t3lib_lock: Clean up constructor and add unit tests

t3lib_lock can be cleaned up a bit: The constructor currently returns values
which is impossible, one error case is turned into an exception.
The constructor is additionally covered with unit tests.

Change-Id: I86b2d7e2c1329cefd6a00952c9a024fd926d5abf
Resolves: #29132
Reviewed-on: http://review.typo3.org/4444
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
t3lib/class.t3lib_lock.php
tests/t3lib/class.t3lib_lockTest.php