This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class UserUpdateTest extends TestCase | |
| { | |
| public function setUp() | |
| { | |
| parent::setUp(); | |
| $this->migrate([ | |
| self::DATABASE_MIGRATIONS_USER, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class UserUpdateTest extends TestCase | |
| { | |
| use DatabaseMigrations; | |
| public function test_user_can_update_profile() | |
| { | |
| Notification::fake(); | |
| Passport::actingAs($user = factory(User::class)->create()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package app.com.datrios.activities; | |
| import android.databinding.DataBindingUtil; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.support.v7.widget.Toolbar; | |
| import com.jaeger.library.StatusBarUtil; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| abstract class TestCase extends BaseTestCase{ | |
| public function mockPassportToken(): void | |
| { | |
| $factory = \Mockery::mock(PersonalAccessTokenFactory::class); | |
| $factory->shouldReceive('make')->with(\Mockery::any(), \Mockery::any(), \Mockery::any())->andReturn(new PersonalAccessTokenResult("123", "123")); | |
| app()->instance(PersonalAccessTokenFactory::class, $factory); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Container | |
| { | |
| public function make($className){} | |
| public function register($className, $callback){} | |
| } | |
| // initialize the container and register some classes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class B | |
| { | |
| public $name = 'akram'; | |
| } | |
| class A | |
| { | |
| private $b; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class B | |
| { | |
| } | |
| class A | |
| { | |
| private $b; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use \Achse\Math\Interval\Utils\StringParser\IntegerIntervalStringParser as Parser; | |
| require_once 'vendor/autoload.php'; | |
| const FREE_TIME = "01:00:00"; | |
| $user = [ | |
| "workHours" => [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'vendor/autoload.php'; | |
| const FREE_TIME = 1; | |
| $user = [ | |
| "workHours" => [ | |
| ["from" => "08:00:00", "to" => "16:00:00"], | |
| [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $user = [ | |
| "workHours" => [ | |
| ["from" => "08:00:00", "to" => "16:00:00"], | |
| [], | |
| ["from" => "08:00:00", "to" => "16:00:00"], | |
| [], | |
| ["from" => "08:00:00", "to" => "16:00:00"], | |
| [], |