public function testAllReturnsArray() { $model = new ApiModelAllStub(); $galleries = $model->all(); assertThat($galleries, is(nonEmptyArray())); }
public function provideJson() { return array('existing json' => array('http://www.rozpisyzapasu.cz/api/', true, nonEmptyArray()), 'non existent page' => array('http://www.non-existent-page.cz/', false, emptyArray())); }
public function testDelete() { $iterator = $this->adapter->dequeue($this->factory, 10); assertThat(iterator_to_array($iterator), is(nonEmptyArray())); $this->adapter->delete(); $iterator = $this->adapter->dequeue($this->factory, 10); assertThat(iterator_to_array($iterator), is(emptyArray())); }