Browse Source

Make the error message better for fixture errors

The stack trace has no details about which fixture is the actual problem.
Carl Sutton 11 years ago
parent
commit
8d58d93636
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;
 				}