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

Commit

Permalink
test updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Jul 11, 2018
1 parent 2230c8b commit 7ffc483
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
35 changes: 30 additions & 5 deletions tests/_support/_generated/UnitTesterActions.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<?php //[STAMP] 7f6e1f0178028a545db716cb03bbf9b5
<?php //[STAMP] 3abc41d5cda553a8009c4a3cb54f94a3
namespace _generated;

// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile

use Codeception\Module\Asserts;
use Helper\Unit;

trait UnitTesterActions
{
/**
Expand Down Expand Up @@ -326,6 +323,20 @@ public function assertTrue($condition, $message = null) {
}


/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that the condition is NOT true (everything but true)
*
* @param $condition
* @param string $message
* @see \Codeception\Module\Asserts::assertNotTrue()
*/
public function assertNotTrue($condition, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotTrue', func_get_args()));
}


/**
* [!] Method is generated. Documentation taken from corresponding module.
*
Expand All @@ -340,6 +351,20 @@ public function assertFalse($condition, $message = null) {
}


/**
* [!] Method is generated. Documentation taken from corresponding module.
*
* Checks that the condition is NOT false (everything but false)
*
* @param $condition
* @param string $message
* @see \Codeception\Module\Asserts::assertNotFalse()
*/
public function assertNotFalse($condition, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertNotFalse', func_get_args()));
}


/**
* [!] Method is generated. Documentation taken from corresponding module.
*
Expand Down Expand Up @@ -441,7 +466,7 @@ public function assertArrayNotHasKey($key, $actual, $description = null) {
* @param array $array
* @param bool $strict
* @param string $message
* @see \Codeception\Module::assertArraySubset()
* @see \Codeception\Module\Asserts::assertArraySubset()
*/
public function assertArraySubset($subset, $array, $strict = null, $message = null) {
return $this->getScenario()->runStep(new \Codeception\Step\Action('assertArraySubset', func_get_args()));
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/Git/VersionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ protected function _after()
*/
public function shouldReturnShortGitVersion() : void
{
$fileName = dirname(__DIR__, 3).'/.git/refs/heads/master';
$fileName = \dirname(__DIR__, 3).'/.git/refs/heads/master';
if (!file_exists($fileName)) {
put_file_contents($fileName, 'kedibey9--');
\file_put_contents($fileName, 'kedibey9--');
}
$expected = substr(file_get_contents(dirname(__DIR__, 3).'/.git/refs/heads/master'), 0, 7);
$result = Version::short();
Expand Down

0 comments on commit 7ffc483

Please sign in to comment.