protected function setUp()
 {
     unset($this->list);
     parent::setUp();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->getRepository()->clearObjectCache();
     $example->Forename = "John";
     $example->DateOfBirth = "1990-01-01";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Mary";
     $example->DateOfBirth = "1980-06-09";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Tom";
     $example->Surname = "Clancy";
     $example->DateOfBirth = "1976-05-09";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Clifford";
     $example->Surname = "Morris";
     $example->DateOfBirth = "1976-05-09";
     $example->save();
     $this->list = new Collection("\\Rhubarb\\Stem\\Tests\\Fixtures\\Example");
 }
 protected function setUp()
 {
     unset($this->list);
     parent::setUp();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->getRepository()->clearObjectCache();
     $example->Forename = "John";
     $example->Surname = "Joe";
     $example->DateOfBirth = "1990-01-01";
     $example->ContactID = 1;
     $example->save();
     $example->Forename = "John";
     $example->Surname = "Johnson";
     $example->DateOfBirth = "1988-01-01";
     $example->ContactID = 2;
     $example->save();
     $example->Forename = "John";
     $example->Surname = "Luc";
     $example->DateOfBirth = "1990-01-01";
     $example->ContactID = 3;
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Mary";
     $example->Surname = "Smithe";
     $example->DateOfBirth = "1980-06-09";
     $example->ContactID = 4;
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Tom";
     $example->Surname = "Thumb";
     $example->DateOfBirth = "1976-05-09";
     $example->ContactID = 5;
     $example->save();
     $this->list = new Collection("\\Rhubarb\\Stem\\Tests\\Fixtures\\Example");
 }
Beispiel #3
0
 protected function setUp()
 {
     unset($this->list);
     parent::setUp();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->getRepository()->clearObjectCache();
     $example->Forename = "Pugh";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Pugh";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Barney";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "McGrew";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Cuthbert";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Dibble";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Grub";
     $example->save();
     $this->list = new Collection("\\Rhubarb\\Stem\\Tests\\Fixtures\\Example");
 }
 protected function setUp()
 {
     unset($this->list);
     parent::setUp();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->getRepository()->clearObjectCache();
     $example->Forename = "John";
     $example->FavouriteNumber = 10;
     $example->DateOfBirth = "1990-01-01";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Mary";
     $example->FavouriteNumber = 15;
     $example->DateOfBirth = "1980-06-09";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Tom";
     $example->Surname = "Thumb";
     $example->FavouriteNumber = 30;
     $example->DateOfBirth = "1976-05-09";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Jimmy";
     $example->Surname = "Joe";
     $example->FavouriteNumber = 5;
     $example->DateOfBirth = "1976-05-10";
     $example->save();
     $this->list = new Collection("\\Rhubarb\\Stem\\Tests\\Fixtures\\Example");
 }
 protected function setUp()
 {
     unset($this->list);
     parent::setUp();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->getRepository()->clearObjectCache();
     $example->Forename = "John";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Mary";
     $example->save();
     $example = new \Rhubarb\Stem\Tests\Fixtures\Example();
     $example->Forename = "Tom";
     $example->Surname = "Thumb";
     $example->save();
     $this->list = new Collection("\\Rhubarb\\Stem\\Tests\\Fixtures\\Example");
 }