Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Skip properties when use ghost objects #217

Closed

Conversation

malukenho
Copy link
Collaborator

linking #212

public function testAuxiliarClassHasPublicPropetyNamedProperty9()
{
$objectWithPublicProperties = new ClassWithPublicProperties;
$this->assertObjectHasAttribute(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test should assert that accessing the attribute does NOT cause lazy-loading

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To do that, throw an exception in the initializer, I'd say

@malukenho malukenho force-pushed the feature/allow-skipping-properties branch 2 times, most recently from ad780a6 to 0fbb2be Compare December 30, 2014 12:07
$ghostObject = $factory->createProxy(
$className,
function () {
},
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should throw an exception in here

@Ocramius
Copy link
Owner

@malukenho the PR is incorrectly rebased. Did you refresh master before starting work on it?

@malukenho malukenho force-pushed the feature/allow-skipping-properties branch from 0fbb2be to b23efd6 Compare December 30, 2014 18:21
@Ocramius
Copy link
Owner

Closing here: please re-open from a clean branch, as this seems to mess up github big time:

infinite commits!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants