[wp-gsoc] [WordPRess GSoC Trac] #383: Testing environment - Vagrantfile error

WordPRess GSoC Trac noreply at wordpress.org
Tue Mar 11 01:22:50 UTC 2014


#383: Testing environment - Vagrantfile error
---------------------------+-----------------------
 Reporter:  tony.wips      |       Owner:  bpetty
     Type:  defect         |      Status:  reopened
 Priority:  normal         |   Milestone:
Component:  JSON REST API  |  Resolution:
 Keywords:                 |
---------------------------+-----------------------

Comment (by tony.wips):

 After cloning the plugin again I activated both and tried to run the tests
 without upgrading and got this error:

 Installing...
 Running as single site... To run multisite, use -c
 tests/phpunit/multisite.xml
 Not running ajax tests... To execute these, use --group ajax.
 PHPUnit 4.0.5 by Sebastian Bergmann.

 Configuration read from /vagrant/content/plugins/json-rest-
 api/phpunit.xml.dist

 .FFPHP Fatal error:  Interface 'WP_JSON_ResponseHandler' not found in
 /vagrant/content/plugins/json-rest-api/lib/class-wp-json-server.php on
 line 18
 PHP Stack trace:
 PHP   1. {main}() /usr/bin/phpunit:0
 PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:581
 PHP   3. PHPUnit_TextUI_Command->run()
 phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:132
 PHP   4. PHPUnit_TextUI_TestRunner->doRun()
 phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:179
 PHP   5. PHPUnit_Framework_TestSuite->run()
 phar:///usr/bin/phpunit/phpunit/TextUI/TestRunner.php:419
 PHP   6. PHPUnit_Framework_TestSuite->run()
 phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:722
 PHP   7. PHPUnit_Framework_TestCase->run()
 phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:722
 PHP   8. PHPUnit_Framework_TestResult->run()
 phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:764
 PHP   9. PHPUnit_Framework_TestCase->runBare()
 phar:///usr/bin/phpunit/phpunit/Framework/TestResult.php:692
 PHP  10. WP_Test_JSON_Server->setUp()
 phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:820
 PHP  11. include_once() /vagrant/content/plugins/json-rest-
 api/tests/test_json_server.php:27

 Fatal error: Interface 'WP_JSON_ResponseHandler' not found in
 /vagrant/content/plugins/json-rest-api/lib/class-wp-json-server.php on
 line 18

 Call Stack:
     0.0034     162188   1. {main}() /usr/bin/phpunit:0
     0.0334     414656   2. PHPUnit_TextUI_Command::main()
 /usr/bin/phpunit:581
     0.0335     414772   3. PHPUnit_TextUI_Command->run()
 phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:132
     4.8781   14027704   4. PHPUnit_TextUI_TestRunner->doRun()
 phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:179
     4.8930   14252804   5. PHPUnit_Framework_TestSuite->run()
 phar:///usr/bin/phpunit/phpunit/TextUI/TestRunner.php:419
     4.9535   14603692   6. PHPUnit_Framework_TestSuite->run()
 phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:722
     4.9543   14603944   7. PHPUnit_Framework_TestCase->run()
 phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:722
     4.9544   14604500   8. PHPUnit_Framework_TestResult->run()
 phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:764
     4.9546   14605164   9. PHPUnit_Framework_TestCase->runBare()
 phar:///usr/bin/phpunit/phpunit/Framework/TestResult.php:692
     4.9549   14622844  10. WP_Test_JSON_Server->setUp()
 phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:820
     4.9752   14718572  11. include_once('/vagrant/content/plugins/json-
 rest-api/lib/class-wp-json-server.php') /vagrant/content/plugins/json-
 rest-api/tests/test_json_server.php:27

--
Ticket URL: <https://gsoc.trac.wordpress.org/ticket/383#comment:8>
WordPRess GSoC Trac <https://gsoc.trac.wordpress.org/>
WordPress Google Summer of Code Trac


More information about the wp-gsoc mailing list