title: Dataprovider can get connection from setUp
body: <h3>Connect to database by setUp() failed</h3>
  
  <pre><code>class ChanTest extends PHPUnit_Framework_TestCase
  {
      protected $db;
  
      protected function setUp()
      {
          $this-&gt;db = new Core\Database('unitest');
      }
  
      /**
       * @dataProvider testProvider
       */
      public function testData($a, $b, $c)
      {
          $this-&gt;assertEquals($a + $b, $c);
      }
  
      public function testProvider()
      {
          $this-&gt;db-&gt;query('SELECT `a`, `b`, `c` FROM `units`');
  
          return $this-&gt;db-&gt;rows();
      }
  }
  </code></pre>
  
  <h3>Connect to database by itself works</h3>
  
  <pre><code>class ChanTest extends PHPUnit_Framework_TestCase
  {
      protected $db;
  
      protected function setUp()
      {
          $this-&gt;db = new Core\Database('unitest');
      }
  
      public function testData($a, $b, $c)
      {
          $this-&gt;db-&gt;query('SELECT `a`, `b`, `c` FROM `units`');
  
          foreach ($this-&gt;db-&gt;rows() as $item) {
              $this-&gt;assertEquals($item['a'] + $item['b'], $item['c']);
          }
      }
  }
  </code></pre>
  
  <p>If I connect database by dataProvider through <code>setUp function</code>, it response <code>Fatal error: Call to a member function query()</code>, but if connect to database by itself works, can <code>dataProvider</code> get the <code>setUp function</code>'s setting?</p>