Skip to content

Commit 503d404

Browse files
committed
Testcase for issue #190
1 parent f41370f commit 503d404

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

tests/data/issue190/src/code.php

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
namespace Acme\UserBundle\Entity;
3+
4+
use Symfony\Component\Security\Core\User\AdvancedUserInterface;
5+
6+
class Main extends User {}
7+
8+
class User implements AdvancedUserInterface, \Serializable {
9+
10+
/**
11+
* (PHP 5 &gt;= 5.1.0)<br/>
12+
* String representation of object
13+
*
14+
* @link http://php.net/manual/en/serializable.serialize.php
15+
* @return string the string representation of the object or null
16+
*/
17+
public function serialize() {
18+
return '';
19+
}
20+
21+
/**
22+
* (PHP 5 &gt;= 5.1.0)<br/>
23+
* Constructs the object
24+
*
25+
* @link http://php.net/manual/en/serializable.unserialize.php
26+
*
27+
* @param string $serialized <p>
28+
* The string representation of the object.
29+
* </p>
30+
*
31+
* @return void
32+
*/
33+
public function unserialize($serialized) {
34+
}
35+
36+
}

tests/data/issue190/src/int.php

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
namespace Symfony\Component\Security\Core\User;
3+
4+
//interface UserInterface {}
5+
6+
//interface AdvancedUserInterface extends UserInterface {}

tests/data/issue190/test.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<phpdox xmlns="http://xml.phpdox.net/config" silent="false">
3+
4+
<project name="phpDox-issue190" source="${basedir}/src" workdir="${basedir}/xml">
5+
6+
<collector publiconly="false" backend="parser" />
7+
8+
<generator output="${basedir}/docs">
9+
<build engine="html" enabled="true" output="html" />
10+
<build engine="xml" enabled="true" output="xml" />
11+
</generator>
12+
13+
</project>
14+
15+
</phpdox>

0 commit comments

Comments
 (0)