コード例 #1
0
 /**
  * Tear down test environment.
  */
 public function tearDown()
 {
     if ($this->connection->tableExists('writers')) {
         $this->connection->dropTable('writers');
     }
     parent::tearDown();
 }
コード例 #2
0
 public function tearDown()
 {
     $this->connection->dropTable('stats_snapshots');
     $this->connection->execute('DROP TRIGGER IF EXISTS `insert_stats_snapshots`');
     $this->connection->execute('DROP TRIGGER IF EXISTS `update_stats_snapshots`');
     parent::tearDown();
 }
コード例 #3
0
 /**
  * Set up test environment.
  */
 public function setUp()
 {
     parent::setUp();
     $container = new Container(['dependency' => 'it works!']);
     $this->pool->setContainer($container);
     $this->assertTrue($this->pool->hasContainer());
     $this->assertInstanceOf(Container::class, $this->pool->getContainer());
     $this->pool->registerType(Writer::class);
 }
コード例 #4
0
 /**
  * Set up test environment.
  */
 public function setUp()
 {
     parent::setUp();
     $this->pool->registerType(User::class);
     $this->assertTrue($this->pool->isTypeRegistered(User::class));
 }