| @@ 36-49 (lines=14) @@ | ||
| 33 | $tables = $this->findTables(); |
|
| 34 | $exceptions = array(); |
|
| 35 | ||
| 36 | foreach ($tables as $table) { |
|
| 37 | try { |
|
| 38 | if (false === $extraction = $this->extractColumns(current($expected), $table)) { |
|
| 39 | $this->getAsserter()->assertArrayEquals($expected, $table, true); |
|
| 40 | ||
| 41 | return; |
|
| 42 | } |
|
| 43 | $this->getAsserter()->assertArrayEquals($expected, $extraction, true); |
|
| 44 | ||
| 45 | return; |
|
| 46 | } catch (\Exception $e) { |
|
| 47 | $exceptions[] = $e; |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | $message = implode("\n", array_map(function ($e) { return $e->getMessage(); }, $exceptions)); |
|
| 52 | ||
| @@ 70-83 (lines=14) @@ | ||
| 67 | $tables = $this->findTables(); |
|
| 68 | $exceptions = array(); |
|
| 69 | ||
| 70 | foreach ($tables as $table) { |
|
| 71 | try { |
|
| 72 | if (false === $extraction = $this->extractColumns(current($expected), $table)) { |
|
| 73 | $this->getAsserter()->assertArrayContains($expected, $table); |
|
| 74 | ||
| 75 | return; |
|
| 76 | } |
|
| 77 | $this->getAsserter()->assertArrayContains($expected, $extraction); |
|
| 78 | ||
| 79 | return; |
|
| 80 | } catch (\Exception $e) { |
|
| 81 | $exceptions[] = $e; |
|
| 82 | } |
|
| 83 | } |
|
| 84 | ||
| 85 | $message = implode("\n", array_map(function ($e) { return $e->getMessage(); }, $exceptions)); |
|
| 86 | ||