[General] Add support for installing dependencies through decomposer

Review Request #522 — Created June 7, 2017 and submitted

p.valk
Lunr
decomposer
ec6f175...
lunr

General: Added Decomposer

reviewed at: https://reviews.lunr.nl/r/522/

unittests.

  • 0
  • 0
  • 8
  • 0
  • 8
Description From Last Updated
p.valk
pprkut
  1. I'm pretty sure 'ant phpunit' does not pass after installing these deps with decomposer. Try again! ;)

  2. composer.json (Diff revision 1)
     
     
     

    No. The point of having support for composer is to not require (or suggest) decomposer.

  3. decomposer.json (Diff revision 1)
     
     
     
     
     
     
     
     
     
     

    Non-functional

  4. decomposer.json (Diff revision 1)
     
     
     
     
     
     
     
     
     

    Non-functional

  5. 
      
p.valk
p.valk
p.valk
pprkut
  1. 
      
  2. tests/test.bootstrap.inc.php (Diff revision 2)
     
     
     
     
     
     

    PHP-Resque is missing

  3. 
      
p.valk
pprkut
  1. 
      
  2. tests/test.bootstrap.inc.php (Diff revision 3)
     
     

    That's not how it works....

    You do still need to add it to decomposer as well.

    Also, wrong captilization

  3. 
      
p.valk
pprkut
  1. ...............................................W.WW............  63 / 477 ( 13%)
    .....PHP Fatal error:  Call to undefined method Mock_ApnsPHP_Push_20c85c5b::add() in /mnt/progs/projects/web/lunr-composer/src/Lunr/Vortex/APNS/ApnsPHP/APNSDispatcher.php on line 170
    PHP Stack trace:
    PHP   1. {main}() /usr/bin/phpunit:0
    PHP   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:583
    PHP   3. PHPUnit_TextUI_Command->run() phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:116
    PHP   4. PHPUnit_TextUI_TestRunner->doRun() phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:186
    PHP   5. PHPUnit_Framework_TestSuite->run() phar:///usr/bin/phpunit/phpunit/TextUI/TestRunner.php:517
    PHP   6. PHPUnit_Framework_TestSuite->run() phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:722
    PHP   7. PHPUnit_Framework_TestSuite->run() phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:722
    PHP   8. PHPUnit_Framework_TestCase->run() phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:722
    PHP   9. PHPUnit_Framework_TestResult->run() phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:860
    PHP  10. PHPUnit_Framework_TestCase->runBare() phar:///usr/bin/phpunit/phpunit/Framework/TestResult.php:686
    PHP  11. PHPUnit_Framework_TestCase->runTest() phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:905
    PHP  12. ReflectionMethod->invokeArgs() phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:1054
    PHP  13. Lunr\Vortex\APNS\ApnsPHP\Tests\APNSDispatcherPushTest->testPushReturnsAPNSResponseObject() phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:1054
    PHP  14. Lunr\Vortex\APNS\ApnsPHP\APNSDispatcher->push() /mnt/progs/projects/web/lunr-composer/src/Lunr/Vortex/APNS/ApnsPHP/Tests/APNSDispatcherPushTest.php:31
    
    Fatal error: Call to undefined method Mock_ApnsPHP_Push_20c85c5b::add() in /mnt/progs/projects/web/lunr-composer/src/Lunr/Vortex/APNS/ApnsPHP/APNSDispatcher.php on line 170
    
    Call Stack:
        0.0642     482072   1. {main}() /usr/bin/phpunit:0
        0.1431   15344728   2. PHPUnit_TextUI_Command::main() /usr/bin/phpunit:583
        0.1431   15353880   3. PHPUnit_TextUI_Command->run() phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:116
        1.0400   33922424   4. PHPUnit_TextUI_TestRunner->doRun() phar:///usr/bin/phpunit/phpunit/TextUI/Command.php:186
        1.2633   34017072   5. PHPUnit_Framework_TestSuite->run() phar:///usr/bin/phpunit/phpunit/TextUI/TestRunner.php:517
        1.3108   34021432   6. PHPUnit_Framework_TestSuite->run() phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:722
        3.7584   38271936   7. PHPUnit_Framework_TestSuite->run() phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:722
        3.7776   38275568   8. PHPUnit_Framework_TestCase->run() phar:///usr/bin/phpunit/phpunit/Framework/TestSuite.php:722
        3.7776   38276152   9. PHPUnit_Framework_TestResult->run() phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:860
        3.7795   38279384  10. PHPUnit_Framework_TestCase->runBare() phar:///usr/bin/phpunit/phpunit/Framework/TestResult.php:686
        3.7878   38302704  11. PHPUnit_Framework_TestCase->runTest() phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:905
        3.7880   38303568  12. ReflectionMethod->invokeArgs() phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:1054
        3.7880   38303664  13. Lunr\Vortex\APNS\ApnsPHP\Tests\APNSDispatcherPushTest->testPushReturnsAPNSResponseObject() phar:///usr/bin/phpunit/phpunit/Framework/TestCase.php:1054
        3.7881   38304328  14. Lunr\Vortex\APNS\ApnsPHP\APNSDispatcher->push() /mnt/progs/projects/web/lunr-composer/src/Lunr/Vortex/APNS/ApnsPHP/Tests/APNSDispatcherPushTest.php:31
  2. decomposer.json (Diff revision 4)
     
     
     
     
     
     
     
     
     
     

    too old, also it's PSR-0 not PSR-4

  3. tests/test.bootstrap.inc.php (Diff revision 4)
     
     

    wrong include

  4. 
      
p.valk
smillernl
  1. 
      
  2. decomposer.json (Diff revision 5)
     
     

    This needs to include a "target-dir": "/Credis"

  3. 
      
p.valk
smillernl
  1. 
      
  2. decomposer.json (Diff revision 6)
     
     

    We should probably make this rc5 at some point

  3. decomposer.json (Diff revision 6)
     
     

    We should probably update this to 1.8.2 at some point

  4. 
      
pprkut
  1. Ship It!
  2. 
      
p.valk
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master

Loading...