| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 29 | protected function loadFixtures() |
||
| 30 | { |
||
| 31 | $dbname = $this->config['dbname']; |
||
| 32 | $dbhost = $this->config['dbhost']; |
||
| 33 | $dbuser = $this->config['dbuser']; |
||
| 34 | $dbpass = $this->config['dbpass']; |
||
| 35 | |||
| 36 | $this->db = new PDO("mysql:dbname=$dbname;host=$dbhost", $dbuser, $dbpass); |
||
| 37 | $sql = file_get_contents(__DIR__.'/fixtures.sql'); |
||
| 38 | $this->db->query($sql); |
||
| 39 | } |
||
| 40 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.