/** * Constructor. * * @param MolinoInterface $molino A molino. * @param object $model A model. */ public function __construct(MolinoInterface $molino, $model) { parent::__construct($molino); $this->model = $model; }
/** * Constructor. * * @param MolinoInterface $molino A molino. * @param QueryInterface $query A query. */ public function __construct(MolinoInterface $molino, QueryInterface $query) { parent::__construct($molino); $this->query = $query; }
public function testConstructorGetMolino() { $molino = $this->getMock('Molino\\MolinoInterface'); $event = new Event($molino); $this->assertSame($molino, $event->getMolino()); }