コード例 #1
0
 public function testThatItParsesAssociationsWithName()
 {
     $association = new Association('[Member]-Posts-[Comment]');
     $this->assertEquals('Posts', $association->getName());
     $this->assertEquals('Member', $association->getFrom());
     $this->assertEquals('Comment', $association->getTo());
 }