Created
December 19, 2011 10:29
-
-
Save michaelcontento/1496521 to your computer and use it in GitHub Desktop.
CakePHP Fixture "Fun"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SomeFixture extends CakeTestFixture | |
{ | |
public $name = 'Table'; | |
public $records = array( | |
array('A' => 1, 'B' => 2), | |
array('B' => 2, 'A' => 1) | |
); | |
} | |
// Will result in: | |
// INSERT INTO `Table` (`B`, `A`) VALUES (1, 2), (2, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment