* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'tests' . DIRECTORY_SEPARATOR . 'bootstrap.php';
use ZalandoPHP\ZalandoPHP;
use ZalandoPHP\Configuration\GenericConfiguration;
use ZalandoPHP\Operations\Categories;
$conf = new GenericConfiguration();
try {
    $conf->setLocale('nl-NL')->setClientName('zalando-php-wrapper')->setResponseType('array');
} catch (\Exception $e) {
    echo $e->getMessage();
}
$zalandoPHP = new ZalandoPHP($conf);
$categories = new Categories('fitness-kinderen');
$categories->setTargetGroup('all');
//$categories->setName('heel');
$categories->setOutlet(false);
//$categories->setType('default');
$formattedResponse = $zalandoPHP->runOperation($categories);
echo '<pre>';
print_r($formattedResponse);
echo '</pre>';
 public function testSearchValidPage()
 {
     $categories = new Categories();
     $categories->setPage(1);
     $this->assertEquals(1, $categories->getPage());
 }