Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-247

Remove composer dependencies for tests

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.5.1
    • Affects Version/s: None
    • Component/s: None
    • None

      Its a littlebit silly we need to install external packages to generate fixtures.

      This also makes testing on alien platforms more difficult as these tests are simply skipped – which is not a good thing.

      The tests that depend on that Faker package should be updated to use onetime-hardcoded fixtures that we bundle with the test suite.

      That way we'd get a consistent re-usable set of fixture that can be used all over the place, rather then the other silly

      // load fixtures for test
      $manager->executeInsert(NS, array('_id' => 1, 'x' => 1));
      $manager->executeInsert(NS, array('_id' => 2, 'x' => 1));
      

      to do delete test, we could do loadFixture(....) in the skipif and then the delete test - so if the load fails, it doesn't affect the test.

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: