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