コード例 #1
0
ファイル: DocumentTest.php プロジェクト: EHER/monopolis
 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);
 }