setAttr( 'invalid.property', 'value' ) ); fail(); } catch (RedException $e ) { asrt( $e->getMessage(), 'Invalid Bean property: property invalid.property' ); } try { R::store( R::dispense( 'invalidbean' )->setAttr( 'property', array() ) ); fail(); } catch (RedException $e ) { asrt( $e->getMessage(), 'Invalid Bean value: property property' ); } try { R::store( R::dispense( 'invalidbean' )->setAttr( 'property', new \stdClass ) ); fail(); } catch (RedException $e ) { asrt( $e->getMessage(), 'Invalid Bean value: property property' ); } } }