Skip to content

Commit

Permalink
test double::defines
Browse files Browse the repository at this point in the history
  • Loading branch information
krakjoe committed Jan 31, 2019
1 parent 80824ec commit 66e7ca3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Mock.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,5 +271,13 @@ public function testMockClear() {

$this->assertFalse(double::exists(\mimus\tests\classes\Foo::class));
}

public function testMockDefines() {
$builder = double::class(\mimus\tests\classes\Foo::class);
$builder->defines("BAR", 42);
$builder->commit();

$this->assertSame(\mimus\tests\classes\Foo::BAR, 42);
}
}
}

0 comments on commit 66e7ca3

Please sign in to comment.