Skip to content

Commit a8ab1fd

Browse files
committed
Fixed tests for php7
1 parent c17f188 commit a8ab1fd

File tree

6 files changed

+10
-12
lines changed

6 files changed

+10
-12
lines changed

.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ php:
1515

1616
matrix:
1717
allow_failures:
18-
- php: 7.0
1918
- php: hhvm
2019

2120
before_script:

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"jms/metadata": "~1.1",
1717
"jms/parser-lib": "1.*",
1818
"phpcollection/phpcollection": "~0.1",
19-
"doctrine/annotations": "1.*",
20-
"doctrine/instantiator": "~1.0.3"
19+
"doctrine/annotations": "^1.0",
20+
"doctrine/instantiator": "^1.0.3"
2121
},
2222
"conflict": {
2323
"twig/twig": "<1.12"
@@ -28,8 +28,8 @@
2828
"require-dev": {
2929
"twig/twig": "~1.12|~2.0",
3030
"doctrine/orm": "~2.1",
31-
"doctrine/phpcr-odm": "^1.0.1",
32-
"jackalope/jackalope-doctrine-dbal": "1.0.*",
31+
"doctrine/phpcr-odm": "^1.3",
32+
"jackalope/jackalope-doctrine-dbal": "^1.0",
3333
"propel/propel1": "~1.7",
3434
"symfony/yaml": "2.*",
3535
"symfony/translation": "~2.0",

tests/JMS/Serializer/Tests/Fixtures/DoctrinePHPCR/Author.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Author
3232
protected $id;
3333

3434
/**
35-
* @PHPCRODM\String()
35+
* @PHPCRODM\Field(type="string")
3636
* @SerializedName("full_name")
3737
*/
3838
private $name;

tests/JMS/Serializer/Tests/Fixtures/DoctrinePHPCR/BlogPost.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,24 @@ class BlogPost
3939
protected $id;
4040

4141
/**
42-
* @PHPCRODM\String()
42+
* @PHPCRODM\Field(type="string")
4343
* @Groups({"comments","post"})
4444
*/
4545
private $title;
4646

4747
/**
48-
* @PHPCRODM\String()
48+
* @PHPCRODM\Field(type="string")
4949
*/
5050
protected $slug;
5151

5252
/**
53-
* @PHPCRODM\Date()
53+
* @PHPCRODM\Field(type="date")
5454
* @XmlAttribute
5555
*/
5656
private $createdAt;
5757

5858
/**
59-
* @PHPCRODM\Boolean()
59+
* @PHPCRODM\Field(type="boolean")
6060
* @Type("integer")
6161
* This boolean to integer conversion is one of the few changes between this
6262
* and the standard BlogPost class. It's used to test the override behavior

tests/JMS/Serializer/Tests/Fixtures/DoctrinePHPCR/Comment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Comment
3939
private $blogPost;
4040

4141
/**
42-
* @PHPCRODM\String()
42+
* @PHPCRODM\Field(type="string")
4343
*/
4444
private $text;
4545

tests/bootstrap.php

-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@
2727
$loader->add('JMS\Serializer\Tests', __DIR__);
2828

2929
AnnotationRegistry::registerLoader('class_exists');
30-
AnnotationRegistry::registerFile(__DIR__.'/../vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Mapping/Annotations/DoctrineAnnotations.php');
3130
});

0 commit comments

Comments
 (0)