Browse Source

Merge pull request #3985 from dogmatic69/patch-3

Make the error message better for fixture errors
José Lorenzo Rodríguez 11 years ago
parent
commit
b6eb5624f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/TestSuite/Fixture/CakeTestFixture.php

+ 1 - 1
lib/Cake/TestSuite/Fixture/CakeTestFixture.php

@@ -289,7 +289,7 @@ class CakeTestFixture {
 				foreach ($this->records as $record) {
 					$merge = array_values(array_merge($default, $record));
 					if (count($fields) !== count($merge)) {
-						throw new CakeException('Fixture invalid: Count of fields does not match count of values');
+						throw new CakeException('Fixture invalid: Count of fields does not match count of values in ' . get_class($this));
 					}
 					$values[] = $merge;
 				}