__invoke() public method

Returns document from id.
public __invoke ( mixed $identifier = '' ) : Model
$identifier mixed Identifier
return Gc\Document\Model
示例#1
0
 /**
  * Test
  *
  * @return void
  */
 public function testInvokeFromId()
 {
     $this->assertInstanceOf('Gc\\Document\\Model', $this->object->__invoke());
 }
示例#2
0
文件: AclTest.php 项目: gotcms/gotcms
 /**
  * Test
  *
  * @return void
  */
 public function testInvoke()
 {
     $this->assertFalse($this->object->__invoke('development', 'test'));
 }