public function testSetChildren() { $c = new ae_CategoryModel(); $c->setChildren(array(1, 2, 50)); $this->assertEquals($c->getChildren(), array(1, 2, 50)); $this->setExpectedException('Exception'); $c->setChildren(array(1, 2, -4)); }