Skip to content

Commit

Permalink
Fixed tests to be able run full test suite without Phalcon
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Oct 4, 2019
1 parent 4f0a979 commit 650708d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- Fixed `zephir_preg_match` to use `ZVAL_NULL` instead of `ZEPHIR_NULL`
[#1946](https://github.com/phalcon/zephir/issues/1946)
- Fixed `Extension\InternalClassesTest` test to be able run full test suite
without Phalcon [#1949](https://github.com/phalcon/zephir/issues/1949)

## [0.12.7] - 2019-10-03
### Fixed
Expand Down
8 changes: 8 additions & 0 deletions unit-tests/Extension/InternalClassesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,20 @@ class InternalClassesTest extends TestCase
{
public function testStaticMethodCall()
{
if (false === class_exists(Di::class)) {
$this->markTestSkipped('Class Phalcon\Di not found');
}

$class = new InternalClasses();
$this->assertSame(Di::getDefault(), $class->testStaticCall());
}

public function testStaticPropertyFetch()
{
if (false === class_exists(Query::class)) {
$this->markTestSkipped('Class Phalcon\Mvc\Model\Query not found');
}

$class = new InternalClasses();
$this->assertSame(Query::TYPE_DELETE, $class->testStaticPropertyFetch());
}
Expand Down

0 comments on commit 650708d

Please sign in to comment.