public function testThrowsExceptionWhenSemverFileNotWriteable() { \PHPUnit_Framework_TestCase::setExpectedExceptionRegExp('Robo\\Exception\\TaskException', '/Failed to write semver file./'); (new \Robo\Task\Development\SemVer('/.semver'))->increment('major')->run(); }
public function testThrowsExceptionWhenNoContainerAvailable() { \PHPUnit_Framework_TestCase::setExpectedExceptionRegExp('\\RuntimeException', '/container is not initialized yet.*/'); Robo::unsetContainer(); Robo::getContainer(); }