File tree Expand file tree Collapse file tree 7 files changed +127
-7
lines changed Expand file tree Collapse file tree 7 files changed +127
-7
lines changed Original file line number Diff line number Diff line change 2
2
/.idea /
3
3
4
4
/vendor /
5
+ composer.lock
Original file line number Diff line number Diff line change
1
+ CHANGE LOG
2
+ ==========
3
+
4
+ ## v1.1.3
5
+
6
+ * [ Added ] Test
7
+
8
+ ## v1.1.2
9
+
10
+ * [ Fixed ] Apply fixes from StyleCI
11
+
12
+ ## v1.1.1
13
+
14
+ * [ Fixed ] composer.json
15
+
16
+ ## v1.1
17
+
18
+ * [ Feature ] Add File Share
19
+ * [ Feature ] Accept Message Request
20
+
21
+ ## v1.0.1
22
+
23
+ * [ Added ] Add Incoming Video Modal
24
+
25
+ ## v1.0
26
+
27
+ * [ Feature ] One To One Chat ( With Video Call )
28
+ * [ Feature ] Group Chat
Original file line number Diff line number Diff line change 20
20
"require" : {
21
21
"php" : " >=5.6.4" ,
22
22
"predis/predis" : " ^1.1" ,
23
- "dflydev/apache-mime-types" : " ^1.0"
23
+ "dflydev/apache-mime-types" : " ^1.0" ,
24
+ "illuminate/support" : " ^5.5" ,
25
+ "illuminate/database" : " ^5.5" ,
26
+ "illuminate/contracts" : " ^5.5"
24
27
},
25
28
"autoload" : {
26
29
"psr-4" : {
30
33
" helper/helpers.php"
31
34
]
32
35
},
36
+ "autoload-dev" : {
37
+ "psr-4" : {
38
+ "PhpJunior\\ LaravelVideoChat\\ Tests\\ " : " tests/"
39
+ }
40
+ },
33
41
"extra" : {
34
42
"laravel" : {
35
43
"providers" : [
39
47
"Chat" : " PhpJunior\\ LaravelVideoChat\\ Facades\\ Chat"
40
48
}
41
49
}
50
+ },
51
+ "require-dev" : {
52
+ "phpunit/phpunit" : " ^6.4" ,
53
+ "graham-campbell/testbench" : " ^4.0"
42
54
}
43
55
}
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit backupGlobals =" false"
3
+ backupStaticAttributes =" false"
4
+ beStrictAboutTestsThatDoNotTestAnything =" true"
5
+ beStrictAboutOutputDuringTests =" true"
6
+ bootstrap =" vendor/autoload.php"
7
+ colors =" true"
8
+ convertErrorsToExceptions =" true"
9
+ convertNoticesToExceptions =" true"
10
+ convertWarningsToExceptions =" true"
11
+ failOnRisky =" true"
12
+ failOnWarning =" true"
13
+ processIsolation =" false"
14
+ stopOnError =" false"
15
+ stopOnFailure =" false"
16
+ verbose =" true"
17
+ >
18
+ <testsuites >
19
+ <testsuite name =" Package Test Suite" >
20
+ <directory suffix =" Test.php" >./tests</directory >
21
+ </testsuite >
22
+ </testsuites >
23
+ <filter >
24
+ <whitelist processUncoveredFilesFromWhitelist =" true" >
25
+ <directory suffix =" .php" >./src</directory >
26
+ </whitelist >
27
+ </filter >
28
+ </phpunit >
Original file line number Diff line number Diff line change 2
2
3
3
namespace PhpJunior \LaravelVideoChat \Services ;
4
4
5
+ use Illuminate \Contracts \Config \Repository ;
5
6
use PhpJunior \LaravelVideoChat \Repositories \Conversation \ConversationRepository ;
6
7
use PhpJunior \LaravelVideoChat \Repositories \GroupConversation \GroupConversationRepository ;
7
8
8
9
class Chat
9
10
{
10
- private $ config ;
11
+ protected $ config ;
11
12
12
- private $ conversation ;
13
+ protected $ conversation ;
13
14
14
- private $ userId ;
15
+ protected $ userId ;
15
16
/**
16
17
* @var GroupConversationRepository
17
18
*/
18
- private $ group ;
19
+ protected $ group ;
19
20
20
21
/**
21
22
* Chat constructor.
22
23
*
23
- * @param $config
24
+ * @param Repository $config
24
25
* @param ConversationRepository $conversation
25
26
* @param GroupConversationRepository $group
26
27
*/
27
28
public function __construct (
28
- $ config ,
29
+ Repository $ config ,
29
30
ConversationRepository $ conversation ,
30
31
GroupConversationRepository $ group
31
32
) {
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Created by PhpStorm.
4
+ * User: nyinyilwin
5
+ * Date: 11/10/17
6
+ * Time: 1:20 AM
7
+ */
8
+
9
+ namespace PhpJunior \LaravelVideoChat \Tests ;
10
+
11
+
12
+ use GrahamCampbell \TestBenchCore \ServiceProviderTrait ;
13
+ use PhpJunior \LaravelVideoChat \Services \Chat ;
14
+
15
+ class LaravelVideoChatServiceProviderTest extends TestCase
16
+ {
17
+ use ServiceProviderTrait;
18
+
19
+ public function testChatIsInjectable ()
20
+ {
21
+ $ this ->assertIsInjectable (Chat::class);
22
+ }
23
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Created by PhpStorm.
4
+ * User: nyinyilwin
5
+ * Date: 11/10/17
6
+ * Time: 1:18 AM
7
+ */
8
+
9
+ namespace PhpJunior \LaravelVideoChat \Tests ;
10
+
11
+ use GrahamCampbell \TestBench \AbstractPackageTestCase ;
12
+ use PhpJunior \LaravelVideoChat \LaravelVideoChatServiceProvider ;
13
+
14
+ abstract class TestCase extends AbstractPackageTestCase
15
+ {
16
+ /**
17
+ * Get the service provider class.
18
+ *
19
+ * @param \Illuminate\Contracts\Foundation\Application $app
20
+ *
21
+ * @return string
22
+ */
23
+ protected function getServiceProviderClass ($ app )
24
+ {
25
+ return LaravelVideoChatServiceProvider::class;
26
+ }
27
+ }
You can’t perform that action at this time.
0 commit comments