Ejemplo n.º 1
0
 public function testAddWrongStub(CodeGuy $I)
 {
     $I->createExamplePhar(\Yii::getAlias('@tests/_runtime/yii2-phar'));
     try {
         $I->addWrongStub();
         $I->fail("stub with wrong params didn't fire exception");
     } catch (InvalidConfigException $error) {
         // Exception must fire.
     }
 }