public function test1() { $a = new AAA(); $c = new CCC(array('attrBBB' => 'sfasdf', 'attrCCC' => 'ghjghjg')); $a->addToBs($c); $this->assert($a->save(), 'Test guardar aaa ' . print_r($a->getErrors(), true)); }