public function testConfiguration2() { $this->assertEquals($this->_dataServiceConfiguration->getMaxResultsPerCollection(), PHP_INT_MAX); $this->_dataServiceConfiguration->setMaxResultsPerCollection(10); try { $this->_dataServiceConfiguration->setEntitySetPageSize('Customers', 5); $this->fail('An expected InvalidOperationException for \'page size and max result per collection mutual exclusion\' was not thrown for month'); } catch (InvalidOperationException $exception) { $this->assertStringEndsWith('mutually exclusive with the specification of \'maximum result per collection\' in configuration', $exception->getMessage()); } $this->assertEquals($this->_dataServiceConfiguration->getMaxResultsPerCollection(), 10); }