Fixes compatibility to phpunit 3.4.
Merge pull request #29 from doleiynyk/unittest_fix_for_phpunit_3.4

Fixes compatibility to phpunit 3.4.