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

Regression when several test arguments are the same #2637

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion tests/Framework/TestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ public function testConfiguredMockCanBeCreated()
$this->assertNull($mock->bar());
}

public function testProvidingOfAuoreferencedArray()
public function testProvidingOfAutoreferencedArray()
{
$test = new \TestAutoreferenced('testJsonEncodeException', $this->getAutoreferencedArray());
$test->runBare();
Expand All @@ -671,4 +671,17 @@ private function getAutoreferencedArray()
]
];
}

public function testProvidingSimilarArrays()
{
$data = [
['foo'],
['foo'],
];

$test = new \TestAutoreferenced('testJsonEncodeException', $data);
$test->runBare();

$this->assertSame($data, $test->myTestData);
}
}