/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void */ protected function setUp() { $parent = new StubTableSakura(); $parent->foo = 'Foo'; $parent->bar = 'Bar'; $parent->roses = 'Roses'; $this->instance = new StubRelationHandler($parent, 'roses'); $this->instance->targetTable(new StubTableRose(), array('foo' => 'foo_id', 'bar' => 'bar_id')); }