V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
hiddenman
V2EX  ›  问与答

PHPUnit 单元测试 RESTful 路由 update 方法

  •  
  •   hiddenman · Jul 22, 2015 · 2966 views
    This topic created in 3932 days ago, the information mentioned may be changed or developed.
    用的是laravel框架

    route 如下
    Route::resource('aaa', 'AaaController');

    PHPUnit如下
    this->call('PUT', 'aaa', '被更新的数据array类型')

    但是phpunit 提示找不到路由

    各位大神,帮帮忙。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   956 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 20:48 · PVG 04:48 · LAX 13:48 · JFK 16:48
    ♥ Do have faith in what you're doing.