Example #1
0
 /**
  * @covers ::getRel
  * @covers ::getRels
  * @covers ::getRelOrError
  */
 public function testRels()
 {
     $config = new Config('Harp\\Harp\\Test\\TestModel\\City');
     $rels = $config->getRels();
     $this->assertSame($rels['country'], $config->getRel('country'));
     $this->assertSame($rels['country'], $config->getRelOrError('country'));
     $this->assertNull($config->getRel('other'));
     $this->setExpectedException('InvalidArgumentException');
     $config->getRelOrError('other');
 }