Example #1
0
 public function testAddBehavior()
 {
     $behavior = $this->getBehaviorMock('foo');
     $database = new Database();
     $this->assertInstanceOf('Propel\\Generator\\Model\\Behavior', $database->addBehavior($behavior));
     $this->assertSame($behavior, $database->getBehavior('foo'));
     $this->assertTrue($database->hasBehavior('foo'));
 }