updated code coverage report
This commit is contained in:
parent
92c3be530d
commit
30e41d0e64
@ -307,7 +307,7 @@
|
||||
<td class="normal">
|
||||
</td></tr>
|
||||
<tr><td>100</td>
|
||||
<td class="covered"> $relations = array($name => array('local' => $local,
|
||||
<td class="covered"> $relations = array($name => array('local' => $id,
|
||||
</td></tr>
|
||||
<tr><td>101</td>
|
||||
<td class="covered"> 'foreign' => $id,
|
||||
@ -316,7 +316,7 @@
|
||||
<td class="covered"> 'onDelete' => 'CASCADE',
|
||||
</td></tr>
|
||||
<tr><td>103</td>
|
||||
<td class="covered"> 'onUpdate' => 'CASCADE'));
|
||||
<td class="covered"> 'onUpdate' => 'CASCADE'));
|
||||
</td></tr>
|
||||
<tr><td>104</td>
|
||||
<td class="normal">
|
||||
|
@ -862,7 +862,7 @@
|
||||
<td class="covered"> ) {
|
||||
</td></tr>
|
||||
<tr><td>285</td>
|
||||
<td class="red"> throw new Doctrine_EventListener_Exception("Couldn't set eventlistener. EventListeners should implement either Doctrine_EventListener_Interface or Doctrine_Overloadable");
|
||||
<td class="covered"> throw new Doctrine_EventListener_Exception("Couldn't set eventlistener. EventListeners should implement either Doctrine_EventListener_Interface or Doctrine_Overloadable");
|
||||
</td></tr>
|
||||
<tr><td>286</td>
|
||||
<td class="orange"> }
|
||||
|
@ -2182,7 +2182,7 @@
|
||||
<td class="covered"> $this->rethrowException($e, $this);
|
||||
</td></tr>
|
||||
<tr><td>725</td>
|
||||
<td class="orange"> }
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>726</td>
|
||||
<td class="normal"> /**
|
||||
@ -2446,19 +2446,19 @@
|
||||
<td class="normal"> }
|
||||
</td></tr>
|
||||
<tr><td>813</td>
|
||||
<td class="orange"> } catch(Doctrine_Adapter_Exception $e) {
|
||||
<td class="covered"> } catch(Doctrine_Adapter_Exception $e) {
|
||||
</td></tr>
|
||||
<tr><td>814</td>
|
||||
<td class="orange"> } catch(PDOException $e) { }
|
||||
<td class="covered"> } catch(PDOException $e) { }
|
||||
</td></tr>
|
||||
<tr><td>815</td>
|
||||
<td class="normal">
|
||||
</td></tr>
|
||||
<tr><td>816</td>
|
||||
<td class="orange"> $this->rethrowException($e, $this);
|
||||
<td class="covered"> $this->rethrowException($e, $this);
|
||||
</td></tr>
|
||||
<tr><td>817</td>
|
||||
<td class="orange"> }
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>818</td>
|
||||
<td class="normal"> /**
|
||||
@ -2563,7 +2563,7 @@
|
||||
<td class="covered"> $this->rethrowException($e, $this);
|
||||
</td></tr>
|
||||
<tr><td>852</td>
|
||||
<td class="orange"> }
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>853</td>
|
||||
<td class="normal"> /**
|
||||
@ -2635,10 +2635,10 @@
|
||||
<td class="normal">
|
||||
</td></tr>
|
||||
<tr><td>876</td>
|
||||
<td class="red"> $this->getListener()->postError($event);
|
||||
<td class="covered"> $this->getListener()->postError($event);
|
||||
</td></tr>
|
||||
<tr><td>877</td>
|
||||
<td class="red"> }
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>878</td>
|
||||
<td class="normal"> /**
|
||||
|
@ -232,7 +232,7 @@
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>75</td>
|
||||
<td class="red"> return false;
|
||||
<td class="covered"> return false;
|
||||
</td></tr>
|
||||
<tr><td>76</td>
|
||||
<td class="orange"> }
|
||||
|
@ -694,10 +694,10 @@
|
||||
<td class="covered"> return $result;
|
||||
</td></tr>
|
||||
<tr><td>229</td>
|
||||
<td class="orange"> } catch (PDOException $e) {
|
||||
<td class="covered"> } catch (PDOException $e) {
|
||||
</td></tr>
|
||||
<tr><td>230</td>
|
||||
<td class="orange"> } catch (Doctrine_Adapter_Exception $e) {
|
||||
<td class="covered"> } catch (Doctrine_Adapter_Exception $e) {
|
||||
</td></tr>
|
||||
<tr><td>231</td>
|
||||
<td class="normal"> }
|
||||
@ -706,13 +706,13 @@
|
||||
<td class="normal">
|
||||
</td></tr>
|
||||
<tr><td>233</td>
|
||||
<td class="orange"> $this->_conn->rethrowException($e, $this);
|
||||
<td class="covered"> $this->_conn->rethrowException($e, $this);
|
||||
</td></tr>
|
||||
<tr><td>234</td>
|
||||
<td class="normal">
|
||||
</td></tr>
|
||||
<tr><td>235</td>
|
||||
<td class="orange"> return false;
|
||||
<td class="covered"> return false;
|
||||
</td></tr>
|
||||
<tr><td>236</td>
|
||||
<td class="orange"> }
|
||||
|
@ -187,7 +187,7 @@
|
||||
<td class="covered"> } else {
|
||||
</td></tr>
|
||||
<tr><td>60</td>
|
||||
<td class="red"> $this->_listeners[$name] = $listener;
|
||||
<td class="covered"> $this->_listeners[$name] = $listener;
|
||||
</td></tr>
|
||||
<tr><td>61</td>
|
||||
<td class="normal"> }
|
||||
@ -223,7 +223,7 @@
|
||||
<td class="normal"> {
|
||||
</td></tr>
|
||||
<tr><td>72</td>
|
||||
<td class="red"> if ( ! isset($this->_listeners[$key])) {
|
||||
<td class="covered"> if ( ! isset($this->_listeners[$key])) {
|
||||
</td></tr>
|
||||
<tr><td>73</td>
|
||||
<td class="red"> return null;
|
||||
@ -232,7 +232,7 @@
|
||||
<td class="orange"> }
|
||||
</td></tr>
|
||||
<tr><td>75</td>
|
||||
<td class="red"> return $this->_listeners[$key];
|
||||
<td class="covered"> return $this->_listeners[$key];
|
||||
</td></tr>
|
||||
<tr><td>76</td>
|
||||
<td class="orange"> }
|
||||
@ -901,16 +901,16 @@
|
||||
<td class="normal"> {
|
||||
</td></tr>
|
||||
<tr><td>298</td>
|
||||
<td class="red"> foreach ($this->_listeners as $listener) {
|
||||
<td class="covered"> foreach ($this->_listeners as $listener) {
|
||||
</td></tr>
|
||||
<tr><td>299</td>
|
||||
<td class="red"> $listener->preQuery($event);
|
||||
<td class="covered"> $listener->preQuery($event);
|
||||
</td></tr>
|
||||
<tr><td>300</td>
|
||||
<td class="red"> }
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>301</td>
|
||||
<td class="red"> }
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>302</td>
|
||||
<td class="normal"> public function postQuery(Doctrine_Event $event)
|
||||
@ -1036,16 +1036,16 @@
|
||||
<td class="normal"> {
|
||||
</td></tr>
|
||||
<tr><td>343</td>
|
||||
<td class="red"> foreach ($this->_listeners as $listener) {
|
||||
<td class="covered"> foreach ($this->_listeners as $listener) {
|
||||
</td></tr>
|
||||
<tr><td>344</td>
|
||||
<td class="red"> $listener->postError($event);
|
||||
<td class="covered"> $listener->postError($event);
|
||||
</td></tr>
|
||||
<tr><td>345</td>
|
||||
<td class="red"> }
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>346</td>
|
||||
<td class="red"> }
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>347</td>
|
||||
<td class="normal">
|
||||
|
113
tests/coverage/Doctrine_EventListener_Exception.html
Normal file
113
tests/coverage/Doctrine_EventListener_Exception.html
Normal file
@ -0,0 +1,113 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Coverage for Doctrine_EventListener_Exception</title>
|
||||
<style type="text/css">
|
||||
.covered{ background: green;}
|
||||
.normal{ background: white;}
|
||||
.red{ background: red;}
|
||||
.orange{ background: #f90;}
|
||||
</style>
|
||||
</head>
|
||||
<body><h1>Coverage for Doctrine_EventListener_Exception</h1><p><a href="index.php">Back to coverage report</a></p><table>
|
||||
<tr><td>1</td>
|
||||
<td class="normal"><?php
|
||||
</td></tr>
|
||||
<tr><td>2</td>
|
||||
<td class="normal">/*
|
||||
</td></tr>
|
||||
<tr><td>3</td>
|
||||
<td class="normal"> * $Id: Exception.php 1344 2007-05-12 23:27:16Z zYne $
|
||||
</td></tr>
|
||||
<tr><td>4</td>
|
||||
<td class="normal"> *
|
||||
</td></tr>
|
||||
<tr><td>5</td>
|
||||
<td class="normal"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
</td></tr>
|
||||
<tr><td>6</td>
|
||||
<td class="normal"> * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
</td></tr>
|
||||
<tr><td>7</td>
|
||||
<td class="normal"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
</td></tr>
|
||||
<tr><td>8</td>
|
||||
<td class="normal"> * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
</td></tr>
|
||||
<tr><td>9</td>
|
||||
<td class="normal"> * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
</td></tr>
|
||||
<tr><td>10</td>
|
||||
<td class="normal"> * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
</td></tr>
|
||||
<tr><td>11</td>
|
||||
<td class="normal"> * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
</td></tr>
|
||||
<tr><td>12</td>
|
||||
<td class="normal"> * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
</td></tr>
|
||||
<tr><td>13</td>
|
||||
<td class="normal"> * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
</td></tr>
|
||||
<tr><td>14</td>
|
||||
<td class="normal"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
</td></tr>
|
||||
<tr><td>15</td>
|
||||
<td class="normal"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
</td></tr>
|
||||
<tr><td>16</td>
|
||||
<td class="normal"> *
|
||||
</td></tr>
|
||||
<tr><td>17</td>
|
||||
<td class="normal"> * This software consists of voluntary contributions made by many individuals
|
||||
</td></tr>
|
||||
<tr><td>18</td>
|
||||
<td class="normal"> * and is licensed under the LGPL. For more information, see
|
||||
</td></tr>
|
||||
<tr><td>19</td>
|
||||
<td class="normal"> * <http://www.phpdoctrine.com>.
|
||||
</td></tr>
|
||||
<tr><td>20</td>
|
||||
<td class="normal"> */
|
||||
</td></tr>
|
||||
<tr><td>21</td>
|
||||
<td class="normal">
|
||||
</td></tr>
|
||||
<tr><td>22</td>
|
||||
<td class="normal">/**
|
||||
</td></tr>
|
||||
<tr><td>23</td>
|
||||
<td class="normal"> * Doctrine_EventListener_Exception
|
||||
</td></tr>
|
||||
<tr><td>24</td>
|
||||
<td class="normal"> *
|
||||
</td></tr>
|
||||
<tr><td>25</td>
|
||||
<td class="normal"> * @package Doctrine
|
||||
</td></tr>
|
||||
<tr><td>26</td>
|
||||
<td class="normal"> * @subpackage EventListener
|
||||
</td></tr>
|
||||
<tr><td>27</td>
|
||||
<td class="normal"> * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
|
||||
</td></tr>
|
||||
<tr><td>28</td>
|
||||
<td class="normal"> * @link www.phpdoctrine.com
|
||||
</td></tr>
|
||||
<tr><td>29</td>
|
||||
<td class="normal"> * @since 1.0
|
||||
</td></tr>
|
||||
<tr><td>30</td>
|
||||
<td class="normal"> * @version $Revision: 1344 $
|
||||
</td></tr>
|
||||
<tr><td>31</td>
|
||||
<td class="normal"> * @author Konsta Vesterinen <kvesteri@cc.hut.fi>
|
||||
</td></tr>
|
||||
<tr><td>32</td>
|
||||
<td class="normal"> */
|
||||
</td></tr>
|
||||
<tr><td>33</td>
|
||||
<td class="covered">class Doctrine_EventListener_Exception extends Doctrine_Exception
|
||||
</td></tr>
|
||||
<tr><td>34</td>
|
||||
<td class="covered">{ }</td></tr>
|
||||
</table></body></html>
|
@ -217,41 +217,44 @@
|
||||
<td class="covered"> $found = false;
|
||||
</td></tr>
|
||||
<tr><td>70</td>
|
||||
<td class="covered"> }
|
||||
<td class="covered"> break;
|
||||
</td></tr>
|
||||
<tr><td>71</td>
|
||||
<td class="covered"> }
|
||||
<td class="orange"> }
|
||||
</td></tr>
|
||||
<tr><td>72</td>
|
||||
<td class="covered"> if ($found) {
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>73</td>
|
||||
<td class="covered"> return $key;
|
||||
<td class="covered"> if ($found) {
|
||||
</td></tr>
|
||||
<tr><td>74</td>
|
||||
<td class="orange"> }
|
||||
<td class="covered"> return $key;
|
||||
</td></tr>
|
||||
<tr><td>75</td>
|
||||
<td class="covered"> }
|
||||
<td class="orange"> }
|
||||
</td></tr>
|
||||
<tr><td>76</td>
|
||||
<td class="covered"> return false;
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>77</td>
|
||||
<td class="orange"> }
|
||||
<td class="covered"> return false;
|
||||
</td></tr>
|
||||
<tr><td>78</td>
|
||||
<td class="normal"> public function flush()
|
||||
<td class="orange"> }
|
||||
</td></tr>
|
||||
<tr><td>79</td>
|
||||
<td class="normal"> {
|
||||
<td class="normal"> public function flush()
|
||||
</td></tr>
|
||||
<tr><td>80</td>
|
||||
<td class="normal">
|
||||
<td class="normal"> {
|
||||
</td></tr>
|
||||
<tr><td>81</td>
|
||||
<td class="covered"> }
|
||||
<td class="normal">
|
||||
</td></tr>
|
||||
<tr><td>82</td>
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>83</td>
|
||||
<td class="covered">}</td></tr>
|
||||
</table></body></html>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -976,7 +976,7 @@
|
||||
<td class="covered"> if (count($parts) == 0 || ! isset($parts['scheme'])) {
|
||||
</td></tr>
|
||||
<tr><td>323</td>
|
||||
<td class="red"> throw new Doctrine_Manager_Exception('Empty data source name');
|
||||
<td class="covered"> throw new Doctrine_Manager_Exception('Empty data source name');
|
||||
</td></tr>
|
||||
<tr><td>324</td>
|
||||
<td class="orange"> }
|
||||
@ -1027,10 +1027,10 @@
|
||||
<td class="normal">
|
||||
</td></tr>
|
||||
<tr><td>340</td>
|
||||
<td class="red"> case 'mssql':
|
||||
<td class="covered"> case 'mssql':
|
||||
</td></tr>
|
||||
<tr><td>341</td>
|
||||
<td class="red"> case 'dblib':
|
||||
<td class="covered"> case 'dblib':
|
||||
</td></tr>
|
||||
<tr><td>342</td>
|
||||
<td class="red"> if ( ! isset($parts['path']) || $parts['path'] == '/') {
|
||||
@ -1093,37 +1093,37 @@
|
||||
<td class="normal">
|
||||
</td></tr>
|
||||
<tr><td>362</td>
|
||||
<td class="red"> case 'mysql':
|
||||
<td class="covered"> case 'mysql':
|
||||
</td></tr>
|
||||
<tr><td>363</td>
|
||||
<td class="red"> case 'informix':
|
||||
<td class="covered"> case 'informix':
|
||||
</td></tr>
|
||||
<tr><td>364</td>
|
||||
<td class="red"> case 'oci8':
|
||||
<td class="covered"> case 'oci8':
|
||||
</td></tr>
|
||||
<tr><td>365</td>
|
||||
<td class="red"> case 'oci':
|
||||
<td class="covered"> case 'oci':
|
||||
</td></tr>
|
||||
<tr><td>366</td>
|
||||
<td class="red"> case 'firebird':
|
||||
<td class="covered"> case 'firebird':
|
||||
</td></tr>
|
||||
<tr><td>367</td>
|
||||
<td class="red"> case 'pgsql':
|
||||
<td class="covered"> case 'pgsql':
|
||||
</td></tr>
|
||||
<tr><td>368</td>
|
||||
<td class="red"> case 'odbc':
|
||||
<td class="covered"> case 'odbc':
|
||||
</td></tr>
|
||||
<tr><td>369</td>
|
||||
<td class="red"> case 'mock':
|
||||
<td class="covered"> case 'mock':
|
||||
</td></tr>
|
||||
<tr><td>370</td>
|
||||
<td class="red"> case 'oracle':
|
||||
<td class="covered"> case 'oracle':
|
||||
</td></tr>
|
||||
<tr><td>371</td>
|
||||
<td class="red"> if ( ! isset($parts['path']) || $parts['path'] == '/') {
|
||||
<td class="covered"> if ( ! isset($parts['path']) || $parts['path'] == '/') {
|
||||
</td></tr>
|
||||
<tr><td>372</td>
|
||||
<td class="red"> throw new Doctrine_Manager_Exception('No database available in data source name');
|
||||
<td class="covered"> throw new Doctrine_Manager_Exception('No database available in data source name');
|
||||
</td></tr>
|
||||
<tr><td>373</td>
|
||||
<td class="orange"> }
|
||||
@ -1177,13 +1177,13 @@
|
||||
<td class="red"> break;
|
||||
</td></tr>
|
||||
<tr><td>390</td>
|
||||
<td class="red"> default:
|
||||
<td class="covered"> default:
|
||||
</td></tr>
|
||||
<tr><td>391</td>
|
||||
<td class="red"> throw new Doctrine_Manager_Exception('Unknown driver '.$parts['scheme']);
|
||||
<td class="covered"> throw new Doctrine_Manager_Exception('Unknown driver '.$parts['scheme']);
|
||||
</td></tr>
|
||||
<tr><td>392</td>
|
||||
<td class="red"> }
|
||||
<td class="covered"> }
|
||||
</td></tr>
|
||||
<tr><td>393</td>
|
||||
<td class="normal">
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user