Exemplo n.º 1
0
 public function testCall()
 {
     $doc = new Document(array('model' => 'lithium\\tests\\mocks\\data\\model\\MockDocumentPost'));
     $expected = 'lithium';
     $result = $doc->medicin();
     $this->assertEqual($expected, $result);
     $result = $doc->ret();
     $this->assertNull($result);
     $expected = 'nose';
     $result = $doc->ret('nose');
     $this->assertEqual($expected, $result);
     $expected = 'job';
     $result = $doc->ret('nose', 'job');
     $this->assertEqual($expected, $result);
 }