Skip to content

Instantly share code, notes, and snippets.

@gentoid
Created April 4, 2014 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gentoid/9973369 to your computer and use it in GitHub Desktop.
Save gentoid/9973369 to your computer and use it in GitHub Desktop.
<?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