LogicException: getItemPath returned null for ClassName
When writing unit tests, sometimes you have a hard time to get them working. Today the error "LogicException: getItemPath returned null for ClassName" drove me crazy, but I found a solution.
The error occured on a new test i renamed during testing which uses fixtures. Even a "sake dev/build ?flush=1" in cli didn't help. While asking my favourite search engine I found, someone else had the same problem in IRC and found the solution:
phpunit path/to/MyTest.php '' db=sqlite3 flush=1
finally flushed, took some time but solved this problem.