Skip to content

Commit 9d41031

Browse files
committed
Merge branch 'master' into simplification
# Conflicts: # src/Types/MultiType.php # tests/src/Helper/LevelOneClass.php
2 parents 4655d1d + 20cda9b commit 9d41031

22 files changed

+73
-26
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
* text eol=lf
2+
*.serialized -text
3+
*.dat -text
4+
/tests export-ignore
5+
/stubs export-ignore
6+
/.gitattributes export-ignore
7+
/.gitignore export-ignore
8+
/.scrutinizer.yml export-ignore
9+
/.travis.yml export-ignore
10+
/phpunit.xml export-ignore

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
vendor
22
.idea
33
composer.lock
4-
cover.xml
4+
cover.xml
5+
build

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
language: php
2+
php:
3+
- nightly
4+
- hhvm
5+
- 7.0
6+
- 5.6
7+
- 5.5
8+
- 5.4
9+
- 5.3
10+
11+
sudo: false
12+
13+
## Cache composer bits
14+
cache:
15+
directories:
16+
- $HOME/.composer/cache
17+
18+
# execute any number of scripts before the test run, custom env's are available as variables
19+
before_script:
20+
- composer install --dev --no-interaction --prefer-dist
21+
22+
matrix:
23+
allow_failures:
24+
- php: hhvm
25+
- php: nightly
26+
fast_finish: true
27+
28+
script:
29+
- mkdir -p build/logs
30+
- ./vendor/bin/phpunit -v --configuration phpunit.xml --coverage-clover build/logs/clover.xml
31+
32+
after_script:
33+
- php vendor/bin/coveralls -v
34+
# - CODECLIMATE_REPO_TOKEN=bef21a7b3d0a531fec57b713df1720bb0da7114f5ce33a3e492ce9599b8ac8df ./vendor/bin/test-reporter

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# yaoi schema
2+
3+
JSON-schema inspired PHP versatile structures.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"php": ">=5.3"
77
},
88
"require-dev": {
9-
"phpunit/phpunit": "^4.8.23",
10-
"phpunit/php-code-coverage": "^2.2.4",
11-
"ext-xdebug": ">=2.2.1"
9+
"phpunit/phpunit": "4.8.23",
10+
"phpunit/php-code-coverage": "2.2.4",
11+
"codeclimate/php-test-reporter": "0.1.2"
1212
},
1313
"license": "MIT",
1414
"authors": [

phpunit.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
>
1414
<testsuites>
1515
<testsuite name="Yaoi PHP Schema Test Suite">
16-
<directory>./tests/PHPUnit/</directory>
16+
<directory>./tests/src/PHPUnit/</directory>
1717
</testsuite>
1818
</testsuites>
1919
<filter>

src/CodeBuilder/PHPCodeBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ public function getPhpDocType(Schema $schema)
7373
return 'object';
7474
}
7575

76-
print_r($schema->getPath());
77-
print_r($schema->getSchemaData());
76+
//print_r($schema->getPath());
77+
//print_r($schema->getSchemaData());
7878
throw new Exception("Please im");
7979
return '';
8080
}
@@ -165,7 +165,7 @@ public function makeClassName($tracePath)
165165

166166
public function storeToDisk($srcPath)
167167
{
168-
print_r($this->classes);
168+
//print_r($this->classes);
169169

170170
}
171171

src/Types/ObjectType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function import($data)
2424
$result->$name = $property->import($data[$name]);
2525
}
2626
catch (Exception $exception) {
27-
$exception->pushStructureTrace('Properties:' . $name);
27+
$exception->pushStructureTrace('properties:' . $name);
2828
throw $exception;
2929
}
3030
unset($data[$name]);
@@ -38,7 +38,7 @@ public function import($data)
3838
$result->$name = $additionalProperties->propertiesSchema->import($value);
3939
}
4040
catch (Exception $exception) {
41-
$exception->pushStructureTrace('AdditionalProperties:' . $name);
41+
$exception->pushStructureTrace('additionalProperties:' . $name);
4242
throw $exception;
4343
}
4444
unset($data[$name]);
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)