Skip to content

Commit

Permalink
Merge f6cd5d1 into dcc9292
Browse files Browse the repository at this point in the history
  • Loading branch information
gongo committed Aug 29, 2023
2 parents dcc9292 + f6cd5d1 commit e7414e2
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions test/RequestTest.php
Expand Up @@ -11,13 +11,6 @@ class RequestTest extends TestCase
{
private $object = null;

private function setUpMethod()
{
$this->object = $this->getMockBuilder('Gongo\MercifulPolluter\Request')
->setMethods(array('getInjectVariables'))
->getMock();
}

public function testPollute()
{
$this->setUpMethod();
Expand Down Expand Up @@ -262,10 +255,15 @@ public function testPolluteSpecifiedBlacklist()
$this->assertEquals('baz', $bar);
}

private function setVariablesOrder($value)
private function setUpMethod()
{
$this->setUpMethod();
$this->object = $this->getMockBuilder('Gongo\MercifulPolluter\Request')
->setMethods(array('getInjectVariables'))
->getMock();
}

private function setVariablesOrder($value)
{
$this->object->method('getInjectVariables')
->willReturn(str_split(strtolower($value)));
}
Expand Down

0 comments on commit e7414e2

Please sign in to comment.