public function setUp() { IdentityMap::clearAll(); $conn = self::$connection; $conn->query("DELETE FROM users"); $conn->query("INSERT INTO users(id, name) VALUES\n\t\t\t(1, 'foo'), (2, 'bar'), (3, 'hoge')\n\t\t"); }
protected function setUp() { $connection = self::$connection; $connection->query("DELETE FROM mocks"); $connection->query("INSERT INTO mocks (id, name)\n\t\t\tVALUES(1, 'bar'), (2, 'foo'), (3, 'hoge'), (4, 'fuga')"); IdentityMap::clearAll(); }
public function setUp() { IdentityMap::clearAll(); $conn = self::$connection; $conn->query("DELETE FROM players"); $conn->query("INSERT INTO players(id, type ,name, club, batting_average, bowling_average) \n\t\t\tVALUES\n\t\t\t(1, 'Player', 'foo', null, null, null),\n\t\t\t(2, 'Cricketer', 'hoge', null, 100, null),\n\t\t\t(3, 'Bowller', 'bar', null, 20, 10),\n\n\t\t\t(4, 'FootBaller','fuga', 'A club', null, null)"); }
protected function setUp() { $connection = self::$connection; $connection->query("DELETE FROM mocks"); $connection->query("INSERT INTO mocks(id, name) values\n\t\t\t(1, 'foo'), (2, 'bar')"); $connection->query("DELETE FROM mockdependents"); $connection->query("INSERT INTO mockdependents (id, name, mock_id) values\n\t\t\t(1, 'one', 1), (2, 'two', 1), (3, 'three', 1), (4, 'four', 1), (5, 'five', 2)"); IdentityMap::clearAll(); }
protected function setUp() { $connection = self::$connection; $connection->query("DELETE FROM mocks"); $connection->query("INSERT INTO mocks(id, name, age) values(1, 'foo', 20)"); $connection->query("DELETE FROM mockdependents"); $connection->query("INSERT INTO mockdependents (id, name, mock_id) values(1, 'bar', 1)"); IdentityMap::clearAll(); }