Skip to content

Instantly share code, notes, and snippets.

@gentoid
Created April 4, 2014 12:15
Show Gist options
  • Select an option

  • Save gentoid/9973369 to your computer and use it in GitHub Desktop.

Select an option

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