コード例 #1
0
ファイル: ManagerTest.php プロジェクト: mecum/expand
 /**
  * @depends test_set
  * @depends test_exists
  */
 public function test_set_call()
 {
     $m = Manager::Create()->set('extension', function () {
         return true;
     });
     $this->assertEquals(true, $m->call(Expandable::create(), 'extension', []));
 }
コード例 #2
0
ファイル: ManagerExceptionTest.php プロジェクト: mecum/expand
 /**
  * @expectedException BadMethodCallException
  * @expectedExceptionCode 110
  */
 public function test_call()
 {
     $em = Manager::Create();
     $this->assertEquals(true, $em->call(Expandable::create(), 'extension', []));
 }