/** * Test if the ->getArray function returns the same as the ArrayQuery object. * * @return void */ public function testGetArrayReturnsArrayQueryValue() { $query = 'is,valid'; $this->assertEquals(ArrayQuery::make($query), (new Inquiry('key', $query))->getArray()); }
/** * Each Query object should be generatable from the ::make function. * * @return void */ public function testMakeReturnsContent() { $this->assertInternalType('array', ArrayQuery::make('is,valid')); }
/** * Get the array value from the query. * * @return array */ public function getArray() { return ArrayQuery::make($this->value); }