Skip to content

Commit

Permalink
Fixed not necessary stdClass mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
stekycz committed Feb 7, 2016
1 parent 31b8e9f commit ee811bb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/CronnerTests/Cronner.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ class CronnerTest extends \TestCase

public function testAcceptsTasksObjectWithTaskMethods()
{
$tasks = $this->mockista->create('\stdClass');

$this->cronner->addTasks($tasks);
$this->cronner->addTasks(new \stdClass());
Assert::equal(1, $this->cronner->countTaskObjects());
}

Expand All @@ -138,8 +136,7 @@ class CronnerTest extends \TestCase
*/
public function testThrowsExceptionOnDuplicateTasksObjectAddition()
{
$tasks = $this->mockista->create('\stdClass');

$tasks = new \stdClass();
$this->cronner->addTasks($tasks);
$this->cronner->addTasks($tasks);
}
Expand Down

0 comments on commit ee811bb

Please sign in to comment.