Created
April 4, 2014 12:15
-
-
Save gentoid/9973369 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class App_ArrayInterfaceTest extends PHPUnit_Framework_TestCase { | |
public function testArrayInterface() { | |
$mock = $this->getMock('App_ArrayInterface'); | |
$this->assertTrue($mock instanceof App_ArrayInterface); | |
$interface = new ReflectionClass('App_ArrayInterface'); | |
$this->assertTrue($interface->hasMethod('toArray')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment