/** * @return array */ public function getProvider() { $object = new TwitterResponseFixtures(); return array(array('array' => $object->getFixtureArray(2), 'method' => 'text', 'expected' => $object->getFixtureExpectedArray(2)), array('array' => $object->getFixtureItemWithErrorArray(), 'method' => 'message', 'expected' => $object->getFixtureExpectedItemWithErrorArray())); }
/** * Test parseErrors method with pipe delimiter. */ public function testparseErrorsWithPipeDelimiter() { $result = $this->invokeMethod($this->twitterProvider, 'parseErrors', array($this->fixtures->getFixtureItemWithErrorArray(), true, '|')); static::assertEquals('An error occurred|A second error occurred', $result); }