Beispiel #1
0
 public function testSetupObject()
 {
     $b = new Behavior();
     $b->loadMapping(array('name' => 'foo'));
     $this->assertEquals($b->getName(), 'foo', 'setupObject() sets the Behavior name from XML attributes');
 }
Beispiel #2
0
 /**
  * @expectedException Propel\Generator\Exception\LogicException
  */
 public function testSetupObjectFailIfIdGivenOnNotMultipleBehavior()
 {
     $b = new Behavior();
     $b->loadMapping(['name' => 'foo', 'id' => 'lala']);
 }