Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
27fe3fcd
Commit
27fe3fcd
authored
Feb 01, 2018
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #473
parents
bac5b9bc
76cabea9
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
51 additions
and
12 deletions
+51
-12
BSONArrayTest.php
tests/Model/BSONArrayTest.php
+2
-1
BSONDocumentTest.php
tests/Model/BSONDocumentTest.php
+2
-1
CollectionInfoTest.php
tests/Model/CollectionInfoTest.php
+1
-1
DatabaseInfoTest.php
tests/Model/DatabaseInfoTest.php
+1
-1
IndexInfoTest.php
tests/Model/IndexInfoTest.php
+1
-1
IndexInputTest.php
tests/Model/IndexInputTest.php
+1
-1
TypeMapArrayIteratorTest.php
tests/Model/TypeMapArrayIteratorTest.php
+2
-1
BulkWriteFunctionalTest.php
tests/Operation/BulkWriteFunctionalTest.php
+4
-1
DeleteFunctionalTest.php
tests/Operation/DeleteFunctionalTest.php
+11
-1
InsertManyFunctionalTest.php
tests/Operation/InsertManyFunctionalTest.php
+11
-1
InsertOneFunctionalTest.php
tests/Operation/InsertOneFunctionalTest.php
+11
-1
UpdateFunctionalTest.php
tests/Operation/UpdateFunctionalTest.php
+4
-1
No files found.
tests/Model/BSONArrayTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests
;
namespace
MongoDB\Tests
\Model
;
use
MongoDB\Model\BSONArray
;
use
MongoDB\Model\BSONArray
;
use
MongoDB\Model\BSONDocument
;
use
MongoDB\Model\BSONDocument
;
use
MongoDB\Tests\TestCase
;
class
BSONArrayTest
extends
TestCase
class
BSONArrayTest
extends
TestCase
{
{
...
...
tests/Model/BSONDocumentTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests
;
namespace
MongoDB\Tests
\Model
;
use
MongoDB\Model\BSONArray
;
use
MongoDB\Model\BSONArray
;
use
MongoDB\Model\BSONDocument
;
use
MongoDB\Model\BSONDocument
;
use
MongoDB\Tests\TestCase
;
use
ArrayObject
;
use
ArrayObject
;
class
BSONDocumentTest
extends
TestCase
class
BSONDocumentTest
extends
TestCase
...
...
tests/Model/CollectionInfoTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests
;
namespace
MongoDB\Tests
\Model
;
use
MongoDB\Model\CollectionInfo
;
use
MongoDB\Model\CollectionInfo
;
use
MongoDB\Tests\TestCase
;
use
MongoDB\Tests\TestCase
;
...
...
tests/Model/DatabaseInfoTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests
;
namespace
MongoDB\Tests
\Model
;
use
MongoDB\Model\DatabaseInfo
;
use
MongoDB\Model\DatabaseInfo
;
use
MongoDB\Tests\TestCase
;
use
MongoDB\Tests\TestCase
;
...
...
tests/Model/IndexInfoTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests
;
namespace
MongoDB\Tests
\Model
;
use
MongoDB\Model\IndexInfo
;
use
MongoDB\Model\IndexInfo
;
use
MongoDB\Tests\TestCase
;
use
MongoDB\Tests\TestCase
;
...
...
tests/Model/IndexInputTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests
;
namespace
MongoDB\Tests
\Model
;
use
MongoDB\Model\IndexInput
;
use
MongoDB\Model\IndexInput
;
use
MongoDB\Tests\TestCase
;
use
MongoDB\Tests\TestCase
;
...
...
tests/Model/TypeMapArrayIteratorTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests
;
namespace
MongoDB\Tests
\Model
;
use
MongoDB\Model\TypeMapArrayIterator
;
use
MongoDB\Model\TypeMapArrayIterator
;
use
MongoDB\Tests\TestCase
;
class
TypeMapArrayIteratorTest
extends
TestCase
class
TypeMapArrayIteratorTest
extends
TestCase
{
{
...
...
tests/Operation/BulkWriteFunctionalTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests\
Collec
tion
;
namespace
MongoDB\Tests\
Opera
tion
;
use
MongoDB\BulkWriteResult
;
use
MongoDB\BulkWriteResult
;
use
MongoDB\Collection
;
use
MongoDB\Driver\BulkWrite
as
Bulk
;
use
MongoDB\Driver\BulkWrite
as
Bulk
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Model\BSONDocument
;
use
MongoDB\Model\BSONDocument
;
...
@@ -10,12 +11,14 @@ use MongoDB\Operation\BulkWrite;
...
@@ -10,12 +11,14 @@ use MongoDB\Operation\BulkWrite;
class
BulkWriteFunctionalTest
extends
FunctionalTestCase
class
BulkWriteFunctionalTest
extends
FunctionalTestCase
{
{
private
$collection
;
private
$omitModifiedCount
;
private
$omitModifiedCount
;
public
function
setUp
()
public
function
setUp
()
{
{
parent
::
setUp
();
parent
::
setUp
();
$this
->
collection
=
new
Collection
(
$this
->
manager
,
$this
->
getDatabaseName
(),
$this
->
getCollectionName
());
$this
->
omitModifiedCount
=
version_compare
(
$this
->
getServerVersion
(),
'2.6.0'
,
'<'
);
$this
->
omitModifiedCount
=
version_compare
(
$this
->
getServerVersion
(),
'2.6.0'
,
'<'
);
}
}
...
...
tests/Operation/DeleteFunctionalTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests\
Collec
tion
;
namespace
MongoDB\Tests\
Opera
tion
;
use
MongoDB\DeleteResult
;
use
MongoDB\DeleteResult
;
use
MongoDB\Collection
;
use
MongoDB\Driver\BulkWrite
;
use
MongoDB\Driver\BulkWrite
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Operation\Delete
;
use
MongoDB\Operation\Delete
;
class
DeleteFunctionalTest
extends
FunctionalTestCase
class
DeleteFunctionalTest
extends
FunctionalTestCase
{
{
private
$collection
;
public
function
setUp
()
{
parent
::
setUp
();
$this
->
collection
=
new
Collection
(
$this
->
manager
,
$this
->
getDatabaseName
(),
$this
->
getCollectionName
());
}
public
function
testDeleteOne
()
public
function
testDeleteOne
()
{
{
$this
->
createFixtures
(
3
);
$this
->
createFixtures
(
3
);
...
...
tests/Operation/InsertManyFunctionalTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests\
Collec
tion
;
namespace
MongoDB\Tests\
Opera
tion
;
use
MongoDB\Collection
;
use
MongoDB\InsertManyResult
;
use
MongoDB\InsertManyResult
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Model\BSONDocument
;
use
MongoDB\Model\BSONDocument
;
...
@@ -9,6 +10,15 @@ use MongoDB\Operation\InsertMany;
...
@@ -9,6 +10,15 @@ use MongoDB\Operation\InsertMany;
class
InsertManyFunctionalTest
extends
FunctionalTestCase
class
InsertManyFunctionalTest
extends
FunctionalTestCase
{
{
private
$collection
;
public
function
setUp
()
{
parent
::
setUp
();
$this
->
collection
=
new
Collection
(
$this
->
manager
,
$this
->
getDatabaseName
(),
$this
->
getCollectionName
());
}
public
function
testInsertMany
()
public
function
testInsertMany
()
{
{
$documents
=
[
$documents
=
[
...
...
tests/Operation/InsertOneFunctionalTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests\
Collec
tion
;
namespace
MongoDB\Tests\
Opera
tion
;
use
MongoDB\Collection
;
use
MongoDB\InsertOneResult
;
use
MongoDB\InsertOneResult
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Model\BSONDocument
;
use
MongoDB\Model\BSONDocument
;
...
@@ -9,6 +10,15 @@ use MongoDB\Operation\InsertOne;
...
@@ -9,6 +10,15 @@ use MongoDB\Operation\InsertOne;
class
InsertOneFunctionalTest
extends
FunctionalTestCase
class
InsertOneFunctionalTest
extends
FunctionalTestCase
{
{
private
$collection
;
public
function
setUp
()
{
parent
::
setUp
();
$this
->
collection
=
new
Collection
(
$this
->
manager
,
$this
->
getDatabaseName
(),
$this
->
getCollectionName
());
}
/**
/**
* @dataProvider provideDocumentWithExistingId
* @dataProvider provideDocumentWithExistingId
*/
*/
...
...
tests/Operation/UpdateFunctionalTest.php
View file @
27fe3fcd
<?php
<?php
namespace
MongoDB\Tests\
Collec
tion
;
namespace
MongoDB\Tests\
Opera
tion
;
use
MongoDB\Collection
;
use
MongoDB\UpdateResult
;
use
MongoDB\UpdateResult
;
use
MongoDB\Driver\BulkWrite
;
use
MongoDB\Driver\BulkWrite
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Driver\WriteConcern
;
...
@@ -9,12 +10,14 @@ use MongoDB\Operation\Update;
...
@@ -9,12 +10,14 @@ use MongoDB\Operation\Update;
class
UpdateFunctionalTest
extends
FunctionalTestCase
class
UpdateFunctionalTest
extends
FunctionalTestCase
{
{
private
$collection
;
private
$omitModifiedCount
;
private
$omitModifiedCount
;
public
function
setUp
()
public
function
setUp
()
{
{
parent
::
setUp
();
parent
::
setUp
();
$this
->
collection
=
new
Collection
(
$this
->
manager
,
$this
->
getDatabaseName
(),
$this
->
getCollectionName
());
$this
->
omitModifiedCount
=
version_compare
(
$this
->
getServerVersion
(),
'2.6.0'
,
'<'
);
$this
->
omitModifiedCount
=
version_compare
(
$this
->
getServerVersion
(),
'2.6.0'
,
'<'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment