/**
  * Override begin transaction to catch fixtures errors
  */
 protected function beginTransactions()
 {
     try {
         parent::beginTransactions();
     } catch (\PHPUnit_Extensions_Database_Operation_Exception $e) {
         $this->assertContains('Cannot add or update a child row:', $e->getError());
     }
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     if (defined('HHVM_VERSION')) {
         // this test should be skipped on hhvm
         // https://github.com/facebook/hhvm/issues/2593
         $this->markTestSkipped();
     }
 }