示例#1
0
 /**
  * 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());
 }
示例#2
0
 /**
  * Each Query object should be generatable from the ::make function.
  * 
  * @return void
  */
 public function testMakeReturnsContent()
 {
     $this->assertInternalType('array', ArrayQuery::make('is,valid'));
 }
示例#3
0
 /**
  * Get the array value from the query.
  * 
  * @return array
  */
 public function getArray()
 {
     return ArrayQuery::make($this->value);
 }