Skip to content

Commit

Permalink
Add test or Mocka\ClassTrait->mockInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszdurka committed Jun 23, 2014
1 parent a19641b commit 18325f6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/source/Mocka/ClassTraitTest.php
Expand Up @@ -6,6 +6,18 @@

class ClassTraitTest extends \PHPUnit_Framework_TestCase {

public function testMockClass() {
$mocka = new Mocka();
$mockClass = $mocka->mockClass('\MockaMocks\AbstractClass');
$this->assertInstanceOf('\\Mocka\\ClassMock', $mockClass);
}

public function testMockInterface() {
$mocka = new Mocka();
$mockClass = $mocka->mockInterface('\MockaMocks\InterfaceMock');
$this->assertInstanceOf('\\Mocka\\ClassMock', $mockClass);
}

public function testCallMockedMethod() {
$mocka = new Mocka();
$mockClass = $mocka->mockClass('\MockaMocks\AbstractClass');
Expand Down

0 comments on commit 18325f6

Please sign in to comment.