Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
Moved TypeCasting implementation to own library
Browse files Browse the repository at this point in the history
Using PSR-4
Coveralls
Fixed issues unit tests
  • Loading branch information
jasny committed Aug 30, 2015
1 parent d4ec0b8 commit 7f4ae8e
Show file tree
Hide file tree
Showing 13 changed files with 185 additions and 262 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor
/composer.lock
build
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ php:
- 5.5
- 5.6

script: phpunit --coverage-text

before_script:
install:
- composer install
- composer require satooshi/php-coveralls

after_success:
- php vendor/bin/coveralls

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Jasny Meta
===

![Travis CI](https://api.travis-ci.org/jasny/meta.svg)
[![Build Status](https://travis-ci.org/jasny/meta.svg?branch=master)](https://travis-ci.org/jasny/meta)
[![Coverage Status](https://coveralls.io/repos/jasny/meta/badge.svg?branch=master&service=github)](https://coveralls.io/github/jasny/meta?branch=master)

The Jasny Meta library allows you to attach metadata to a class and class properties. The metadata is available at
runtime and can be used to trigger particular behaviour.
Expand Down
7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
"source": "https://github.com/jasny/meta"
},
"require": {
"php": ">=5.4.0"
"php": ">=5.4.0",
"jasny/typecast": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "4.2.*"
},
"autoload": {
"psr-0": {
"Jasny\\Meta": "src/"
"psr-4": {
"Jasny\\": "src/"
}
}
}
23 changes: 17 additions & 6 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit colors="true" bootstrap="tests/bootstrap.php">
<phpunit
colors="true"
bootstrap="tests/bootstrap.php"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<testsuite name="Jasny Meta Test Suite">
<testsuite name="Jasny TypeCast Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<blacklist>
<directory suffix=".php">vendor</directory>
</blacklist>
</filter>
<whitelist>
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-text" target="php://stdout"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>

246 changes: 0 additions & 246 deletions src/Jasny/Meta/TypeCasting.php

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7f4ae8e

Please sign in to comment.