/** * testing method return array type */ public function testTypeFunction() { $model = new PatientForm(); $this->assertInternalType('array', $model->rules()); $this->assertInternalType('array', $model->attributeLabels()); $dateTrue = "06/07/2016"; $dateFalse = "06-07-2016"; $this->assertTrue($model->dateFormat($dateTrue)); $this->assertFalse($model->dateFormat($dateFalse)); $this->assertFalse($model->dateFormat("32/20/16547")); $this->assertInternalType('array', $model->getGenre()); $this->assertInternalType('array', $model->getSource()); }