public function testSetFlagsFailure() { $relations = new ezcPersistentObjectRelations(); try { $relations->setFlags(23); $this->fail('ezcBaseValueException not thrown on flags different to 0.'); } catch (ezcBaseValueException $e) { } $this->assertEquals(0, $relations->getFlags()); }