我想只从curl请求中获取标题
curl -I www.google.com
一切都很棒.现在我想这样做,但也传递后期数据:
curl -I -d'test=test' www.google.com
但我得到的只是:
Warning: You can only select one HTTP request!
任何人都知道如何做到这一点,还是我做了一些愚蠢的事情?
我刚刚开始在一些现有代码上试用phpunit.我们使用的命名约定是MyClass类应该在MyClass.class.php中.PHPUnit似乎要求该文件应该被称为MyClass.php.
有没有办法解决?
我在尝试生成骨架测试类时注意到了它:
phpunit --skeleton-test MyClass.class
PHPUnit 3.3.4 by Sebastian Bergmann.
Could not find class "MyClass.class" in "/home/jd/skeleton/classes/MyClass.class.php".
Fatal error: Call to a member function getOutClassName() on a non-object in /usr/share/php/PHPUnit/TextUI/Command.php on line 470
Run Code Online (Sandbox Code Playgroud)