Skip to content

Commit

Permalink
Adjusting travis config to use composer
Browse files Browse the repository at this point in the history
  • Loading branch information
jamierumbelow committed Nov 3, 2012
1 parent 190d117 commit 425b67f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@ language: php
php:
- 5.3
- 5.4
script: phpunit tests/MY_Model_test.php

before_script:
- curl -s https://getcomposer.org/installer | php
- php composer.phar install --dev

script: vendor/bin/phpunit tests/MY_Model_test.php
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"require": {
"phpunit/phpunit": "3.7.*",
"mockery/mockery": "*"
"mockery/mockery": ">=0.7.2"
},
"autoload": {
"classmap": [ "core", "tests/support/models" ]
Expand Down
2 changes: 1 addition & 1 deletion tests/MY_Model_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ protected function _validatable_model($validate_pass_or_fail = TRUE)
$model->form_validation = m::mock('form validation class');
$model->form_validation->shouldIgnoreMissing();
$model->form_validation->shouldReceive('run')
->andReturn($validate_pass_or_fail);
->andReturn($validate_pass_or_fail);

return $model;
}
Expand Down

0 comments on commit 425b67f

Please sign in to comment.